mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
Merge pull request #431 from blueyed/fix-valueerror-cmdline-callsigs
Fix ValueError with cmdline call signatures
This commit is contained in:
@@ -411,8 +411,9 @@ def cmdline_call_signatures(signatures):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
index = [s.index for s in signatures if isinstance(s.index, int)][0]
|
index = [s.index for s in signatures if isinstance(s.index, int)][0]
|
||||||
left = text.index(params[index])
|
escaped_param = params[index].replace(r'\n', r'\\n')
|
||||||
right = left + len(params[index])
|
left = text.index(escaped_param)
|
||||||
|
right = left + len(escaped_param)
|
||||||
vim_command(' echon "%s" | '
|
vim_command(' echon "%s" | '
|
||||||
'echohl Function | echon "%s" | '
|
'echohl Function | echon "%s" | '
|
||||||
'echohl None | echon "(" | '
|
'echohl None | echon "(" | '
|
||||||
|
|||||||
Reference in New Issue
Block a user