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
25
25
show_execution_count = True # wait to get numbers for In[43 ]: feedback?
26
26
monitor_subchannel = True # update vim - ipython ' shell' on every send?
27
27
run_flags= " -i" # flags to for IPython's run magic when using <F5>
28
+ current_line = ' '
28
29
29
30
import vim
30
31
import sys
@@ -485,14 +486,17 @@ fun! CompleteIPython(findstart, base)
485
486
let start -= 1
486
487
endwhile
487
488
echo start
489
+ python << endpython
490
+ current_line = vim .current.line
491
+ endpython
488
492
return start
489
493
else
490
494
" find months matching with "a:base"
491
495
let res = []
492
496
python << endpython
493
497
base = vim .eval (" a:base" )
494
498
findstart = 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('.')" ))
496
500
try :
497
501
m = get_child_msg (msg_id)
498
502
matches = m [' content' ][' matches' ]
You can’t perform that action at this time.
0 commit comments