From b7c1f32922ba08b22ff5d82351086e32cc93aaac Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 9 Nov 2014 20:47:39 +0100 Subject: [PATCH] Strip pattern when completing. --- qutebrowser/utils/completer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/completer.py b/qutebrowser/utils/completer.py index 5875ec70c..5ab750f9b 100644 --- a/qutebrowser/utils/completer.py +++ b/qutebrowser/utils/completer.py @@ -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)