##// END OF EJS Templates
We need to returned match text only if matches have been found....
Matthias Bussonnier -
Show More
@@ -2073,8 +2073,12 b' class IPCompleter(Completer):'
2073 # if text starts with slash
2073 # if text starts with slash
2074 if slashpos > -1:
2074 if slashpos > -1:
2075 s = text[slashpos+1:]
2075 s = text[slashpos+1:]
2076 return s, [x for x in names if x.startswith(s)]
2076 candidates = [x for x in names if x.startswith(s)]
2077 if candidates:
2078 return s, [x for x in names if x.startswith(s)]
2079 else:
2080 return '', ()
2077
2081
2078 # if text does not start with slash
2082 # if text does not start with slash
2079 else:
2083 else:
2080 return u'', []
2084 return u'', ()
General Comments 0
You need to be logged in to leave comments. Login now