diff options
-rw-r--r-- | ranger/gui/widgets/console.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index 35e0b844..c81c66b5 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -118,7 +118,7 @@ class Console(Widget): if prompt is not None: assert isinstance(prompt, str) self.prompt = prompt - elif hasattr(self, 'prompt'): + elif 'prompt' in self.__dict__: del self.prompt cls = mode_to_class(mode) |