From 62d9b564f9f2f7142eab0137f9aa4a8e69340a55 Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 4 Jan 2013 10:55:43 +0100 Subject: [PATCH] add spaces to additional get_definition quotes, fixes #63 --- plugin/jedi_vim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/jedi_vim.py b/plugin/jedi_vim.py index b47ec32..9b0bcd9 100644 --- a/plugin/jedi_vim.py +++ b/plugin/jedi_vim.py @@ -218,7 +218,8 @@ def show_func_def(call_def=None, completion_lines=0): # (don't want to break the syntax) regex_quotes = r'''\\*["']+''' # `add` are all the quotation marks. - add = ''.join(re.findall(regex_quotes, replace)) + # join them with a space to avoid producing ''' + add = ' '.join(re.findall(regex_quotes, replace)) # search backwards if add and replace[0] in ['"', "'"]: a = re.search(regex_quotes + '$', prefix)