File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ reselect = False # reselect lines after sending from Visual mode
2525show_execution_count = True # wait to get numbers for In[43 ]: feedback?
2626monitor_subchannel = True # update vim - ipython ' shell' on every send?
2727run_flags= " -i" # flags to for IPython's run magic when using <F5>
28+ current_line = ' '
2829
2930import vim
3031import sys
@@ -485,14 +486,17 @@ fun! CompleteIPython(findstart, base)
485486 let start -= 1
486487 endwhile
487488 echo start
489+ python << endpython
490+ current_line = vim .current.line
491+ endpython
488492 return start
489493 else
490494 " find months matching with "a:base"
491495 let res = []
492496 python << endpython
493497base = vim .eval (" a:base" )
494498findstart = vim .eval (" a:findstart" )
495- msg_id = km .shell_channel.complete (base, vim .current. line , vim .eval (" col('.')" ))
499+ msg_id = km .shell_channel.complete (base, current_line , vim .eval (" col('.')" ))
496500try :
497501 m = get_child_msg (msg_id)
498502 matches = m [' content' ][' matches' ]
You can’t perform that action at this time.
0 commit comments