mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
remove a deprecated line
This commit is contained in:
2
jedi
2
jedi
Submodule jedi updated: d5d12716b1...9c258ca897
@@ -138,7 +138,7 @@ def goto(is_definition=False, is_related_name=False, no_output=False):
|
|||||||
if d.module_path != vim.current.buffer.name:
|
if d.module_path != vim.current.buffer.name:
|
||||||
vim.eval('jedi#new_buffer(%s)' % \
|
vim.eval('jedi#new_buffer(%s)' % \
|
||||||
repr(PythonToVimStr(d.module_path)))
|
repr(PythonToVimStr(d.module_path)))
|
||||||
vim.current.window.cursor = d.line_nr, d.column
|
vim.current.window.cursor = d.line, d.column
|
||||||
vim.command('normal! zt') # cursor at top of screen
|
vim.command('normal! zt') # cursor at top of screen
|
||||||
else:
|
else:
|
||||||
# multiple solutions
|
# multiple solutions
|
||||||
@@ -149,7 +149,7 @@ def goto(is_definition=False, is_related_name=False, no_output=False):
|
|||||||
PythonToVimStr('Builtin ' + d.description)))
|
PythonToVimStr('Builtin ' + d.description)))
|
||||||
else:
|
else:
|
||||||
lst.append(dict(filename=PythonToVimStr(d.module_path),
|
lst.append(dict(filename=PythonToVimStr(d.module_path),
|
||||||
lnum=d.line_nr, col=d.column + 1,
|
lnum=d.line, col=d.column + 1,
|
||||||
text=PythonToVimStr(d.description)))
|
text=PythonToVimStr(d.description)))
|
||||||
vim.eval('setqflist(%s)' % repr(lst))
|
vim.eval('setqflist(%s)' % repr(lst))
|
||||||
vim.eval('jedi#add_goto_window()')
|
vim.eval('jedi#add_goto_window()')
|
||||||
|
|||||||
Reference in New Issue
Block a user