Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 015aae9 commit 64a435cCopy full SHA for 64a435c
1 file changed
ftplugin/python/vim_ipython.py
@@ -310,7 +310,10 @@ def get_doc_buffer(level=0):
310
vim.command('setlocal syntax=python')
311
312
def ipy_complete(base, current_line, pos):
313
- msg_id = kc.shell_channel.complete(base, current_line, len(current_line))
+ # pos is the location of the start of base, add the length
314
+ # to get the completion position
315
+ msg_id = kc.shell_channel.complete(base, current_line,
316
+ int(pos) + len(base) - 1)
317
try:
318
m = get_child_msg(msg_id)
319
matches = m['content']['matches']
0 commit comments