From 2d7dd391a3f134c0bd467aae1863c340a15d038d Mon Sep 17 00:00:00 2001 From: Argn0 Date: Thu, 11 Jan 2018 14:08:17 +0100 Subject: [PATCH] review 1 --- qutebrowser/mainwindow/statusbar/command.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/qutebrowser/mainwindow/statusbar/command.py b/qutebrowser/mainwindow/statusbar/command.py index 76e829a45..4e8c55d9c 100644 --- a/qutebrowser/mainwindow/statusbar/command.py +++ b/qutebrowser/mainwindow/statusbar/command.py @@ -213,14 +213,7 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit): self.hide_cmd.emit() self.clear_completion_selection.emit() self.hide_completion.emit() - - def setText(self, text): - """Extend setText to make sure the prefix is valid.""" - if text and text[0] not in modeparsers.STARTCHARS: - raise utils.Unreachable("setText got called with invalid text " - "'{}'!".format(text)) - super().setText(text) - + def setText(self, text): """Extend setText to set prefix and make sure the prompt is ok.""" if not text: