UltiSnips runs into an recursive loop when latex.snippets extends tex.snippets
Bug #720611 reported by
SirVer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UltiSnips |
Fix Released
|
Low
|
Unassigned |
Bug Description
This was reported by Timo via mail
To reproduce the problem:
echo "extends tex" > latex.snippets
vim test.tex
:set ft=tex
ib<Tab>
UltiSnips dies in a recursive loop.
Related branches
lp:~ryan.wooden/ultisnips/fix-720611
- SirVer: Pending requested
-
Diff: 33 lines (+12/-4)1 file modifiedplugin/UltiSnips/__init__.py (+12/-4)
To post a comment you must log in.
The problem is that latex.snippets is interpreted as *tex.snippets, that is a file that handles ft=tex. If this file extends ft=tex, it effectively extends itself recursively. UltiSnips should catch this with a useful error message and not recurse.