mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-09 14:56:08 +08:00
use PythonToVimStr in more places, fixes #60
This commit is contained in:
1 parent
cde62de599
commit
89f21b9196
2 files changed
+7
-5
No files matched your search
+6
-4
@@ -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