UltiSnips is not working correctly if langmap is not compiled into vim
Bug #719997 reported by
SirVer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UltiSnips |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Reported by Martin via Mail:
I was trying out ultisnips for the first time and ran into an error when expanding most snippets: https:/
I have no skills with python, but line 406 of __init__.py checks the value of the &langmap option, but if this option is not compiled into vim then vim.eval(&langmap) returns None. Then the script fails when trying to call strip() on this object.
My temporary fix is to stick "return s" at the top of the function.
You can use has("langmap") to check if the feature was compiled in.
Related branches
To post a comment you must log in.
I wasn't aware that langmap is optional. I committed a fix which does not break things on my box and should fix things on your box in r242. Please check if this is the case.