Merge pull request #347 from wilywampa/remove_clearsigs

Don't clear command line call signatures in completions()
This commit is contained in:
Dave Halter
2015-01-06 10:23:08 +01:00

View File

@@ -104,7 +104,10 @@ def get_script(source=None, column=None):
@catch_and_print_exceptions
def completions():
row, column = vim.current.window.cursor
clear_call_signatures()
# Clear call signatures in the buffer so they aren't seen by the completer.
# Call signatures in the command line can stay.
if vim_eval("g:jedi#show_call_signatures") == '1':
clear_call_signatures()
if vim.eval('a:findstart') == '1':
count = 0
for char in reversed(vim.current.line[:column]):