##// END OF EJS Templates
Fix greedy completion for qtconsole
Martin Bergtholdt -
Show More
@@ -52,7 +52,12 b' class CompletionLexer(object):'
52 # in C++. This is why we have to build up an operator from
52 # in C++. This is why we have to build up an operator from
53 # potentially several tokens.
53 # potentially several tokens.
54 elif token is Token.Operator or token is Token.Punctuation:
54 elif token is Token.Operator or token is Token.Punctuation:
55 current_op = text + current_op
55 # Handle a trailing separator, e.g 'foo.bar.'
56 if current_op in self._name_separators:
57 if not context:
58 context.insert(0, '')
59 else:
60 current_op = text + current_op
56
61
57 # Break on anything that is not a Operator, Punctuation, or Name.
62 # Break on anything that is not a Operator, Punctuation, or Name.
58 else:
63 else:
General Comments 0
You need to be logged in to leave comments. Login now