Permalink
Browse files

Fixed a bug which compared a vim.eval to an integer instead of a stri…

…ng. Patch by Sung Pae
  • Loading branch information...
SirVer committed Jun 28, 2011
1 parent c6af0d0 commit 402df7605c03922c4c3af82308a5b1774ac62fd5
Showing with 2 additions and 1 deletion.
  1. +1 −0 doc/UltiSnips.txt
  2. +1 −1 plugin/UltiSnips/__init__.py
@@ -749,6 +749,7 @@ Contributers are listed in chronological order:
expelledboy - Anthony Jackson
allait - Alexey Bezhan
peacech - Charles Gunawan
guns - Sung Pae

7.2 Snippets *UltiSnips-contrisnippets*
------------
@@ -1169,7 +1169,7 @@ def file_to_edit(self, ft=None):
existing = self.base_snippet_files_for(ft, False)
filename = ft + ".snippets"

if vim.eval("exists('g:UltiSnipsSnippetsDir')") == 1:
if vim.eval("exists('g:UltiSnipsSnippetsDir')") == "1":
snipdir = vim.eval("g:UltiSnipsSnippetsDir")
edit = os.path.join(snipdir, filename)
elif existing:

0 comments on commit 402df76

Please sign in to comment.