Skip to content

Commit a38a5e4

Browse files
committed
Fix function existence check
1 parent 4f39105 commit a38a5e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/python/ipy.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ base = vim.eval("a:base")
338338
try:
339339
matches, metadata = ipy_complete(base, current_line, int(vim.eval('start')) + len(base))
340340
except IOError:
341-
if vim.eval('exists("*jedi#completions")'):
341+
if vim.eval('exists("*jedi#completions")') == '1':
342342
vim.command('setlocal omnifunc=jedi#completions')
343343
else:
344344
vim.command('setlocal omnifunc=')

0 commit comments

Comments
 (0)