Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b66b480

Browse files
committed
balloon_eval fix for console-only vim. (fixes #1)
thanks @nakamuray and @tcheneau for tracking this down
1 parent de90af4 commit b66b480

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ftplugin/python/ipy.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ def get_child_msg(msg_id):
222222
if m['parent_header']['msg_id'] == msg_id:
223223
break
224224
else:
225+
#got a message, but not the one we were looking for
225226
echo('skipping a message on shell_channel','WarningMsg')
226227
return m
227228

@@ -378,8 +379,10 @@ vim.command("let l:doc = %s"% reply)
378379
endpython
379380
return l:doc
380381
endfunction
381-
set bexpr=IPythonBalloonExpr()
382-
set ballooneval
382+
if has('balloon_eval')
383+
set bexpr=IPythonBalloonExpr()
384+
set ballooneval
385+
endif
383386

384387
fun! CompleteIPython(findstart, base)
385388
if a:findstart

0 commit comments

Comments
 (0)