Fix /-foo searches.

This commit is contained in:
Florian Bruhin 2015-04-24 17:25:53 +02:00
parent 71608af486
commit 844473e47a

View File

@ -163,8 +163,8 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit):
"""Execute the command currently in the commandline.""" """Execute the command currently in the commandline."""
prefixes = { prefixes = {
':': '', ':': '',
'/': 'search ', '/': 'search -- ',
'?': 'search -r ', '?': 'search -r -- ',
} }
text = self.text() text = self.text()
self.history.append(text) self.history.append(text)