mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
use PythonToVimStr in more places, fixes #60
This commit is contained in:
2
jedi
2
jedi
Submodule jedi updated: b3c89effe7...17bec929bb
@@ -143,11 +143,13 @@ def goto(is_definition=False, is_related_name=False, no_output=False):
|
||||
lst = []
|
||||
for d in definitions:
|
||||
if d.in_builtin_module():
|
||||
lst.append(dict(text='Builtin ' + d.description))
|
||||
lst.append(dict(text=
|
||||
PythonToVimStr('Builtin ' + d.description)))
|
||||
else:
|
||||
lst.append(dict(filename=d.module_path, lnum=d.line_nr,
|
||||
col=d.column + 1, text=d.description))
|
||||
vim.eval('setqflist(%s)' % str(lst))
|
||||
lst.append(dict(filename=PythonToVimStr(d.module_path),
|
||||
lnum=d.line_nr, col=d.column + 1,
|
||||
text=PythonToVimStr(d.description)))
|
||||
vim.eval('setqflist(%s)' % repr(lst))
|
||||
vim.eval('<sid>add_goto_window()')
|
||||
return definitions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user