Skip to content

Commit eac1684

Browse files
phil-nelsonautozimu
authored andcommitted
Signature help bug fixes
* escape signature help * add missing return
1 parent b85ff8e commit eac1684

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rplugin/python3/LanguageClient/state.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,15 @@ def echo_signature(signature: str, activeParameter: str = None) -> None:
172172
"""
173173
if activeParameter is None:
174174
echo(signature)
175+
return
175176
parts = signature.split(activeParameter, 1)
176177
if (len(parts) != 2):
177-
# active paramter is not part of a signature
178+
# active parameter is not part of a signature
178179
echo(signature)
179180
return
180181
[begin, end] = parts
181182
execute_command("echon '{}' | echohl Bold | echon '{}' | echohl None | echon '{}'".format(
182-
begin, activeParameter, end
183+
escape(begin), escape(activeParameter), escape(end)
183184
))
184185

185186

0 commit comments

Comments
 (0)