Strip pattern when completing.

This commit is contained in:
Florian Bruhin 2014-11-09 20:47:39 +01:00
parent f8dc2a9fb4
commit b7c1f32922

View File

@ -306,7 +306,7 @@ class Completer(QObject):
return
try:
pattern = self._parts[self._cursor_part] if self._parts else ''
pattern = self._parts[self._cursor_part].strip()
except IndexError:
pattern = ''
self._model().set_pattern(pattern)