Strip pattern when completing.
This commit is contained in:
parent
f8dc2a9fb4
commit
b7c1f32922
@ -306,7 +306,7 @@ class Completer(QObject):
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
pattern = self._parts[self._cursor_part] if self._parts else ''
|
pattern = self._parts[self._cursor_part].strip()
|
||||||
except IndexError:
|
except IndexError:
|
||||||
pattern = ''
|
pattern = ''
|
||||||
self._model().set_pattern(pattern)
|
self._model().set_pattern(pattern)
|
||||||
|
Loading…
Reference in New Issue
Block a user