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

Skip to content

Commit f64d22d

Browse files
committed
IPython 3 completion
The cursor position must be specified in IPython 3 as the kernel does the lexing.
1 parent e5b32a6 commit f64d22d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ftplugin/python/vim_ipython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def get_doc_buffer(level=0):
300300
vim.command('setlocal syntax=python')
301301

302302
def ipy_complete(base, current_line, pos):
303-
msg_id = kc.shell_channel.complete(base, current_line, pos)
303+
msg_id = kc.shell_channel.complete(base, current_line, len(current_line))
304304
try:
305305
m = get_child_msg(msg_id)
306306
matches = m['content']['matches']

0 commit comments

Comments
 (0)