Small fixes from Ryan
This commit is contained in:
commit
489a9ad8d4
@ -188,12 +188,8 @@ endf
|
||||
python << EOF
|
||||
import vim, os, sys
|
||||
|
||||
for p in vim.eval("&runtimepath").split(','):
|
||||
dname = p + os.path.sep + "plugin"
|
||||
if os.path.exists(dname + os.path.sep + "UltiSnips"):
|
||||
if dname not in sys.path:
|
||||
sys.path.append(dname)
|
||||
break
|
||||
new_path = vim.eval('expand("<sfile>:h")')
|
||||
sys.path.append(new_path)
|
||||
|
||||
from UltiSnips import UltiSnips_Manager
|
||||
UltiSnips_Manager.expand_trigger = vim.eval("g:UltiSnipsExpandTrigger")
|
||||
|
@ -665,6 +665,9 @@ class SnippetManager(object):
|
||||
|
||||
if snip.matches(before):
|
||||
self._do_snippet(snip, before, after)
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def clear_snippets(self, triggers = [], ft = "all"):
|
||||
if ft in self._snippets:
|
||||
|
Loading…
x
Reference in New Issue
Block a user