diff options
author | toonn <toonn@toonn.io> | 2020-01-15 22:12:32 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2020-07-05 15:23:43 +0200 |
commit | 58376f3898a4bdc42f2c9074850c17e765d3d3ea (patch) | |
tree | b1fdd51f6a06cec0913266c801cfa5117f9cff30 | |
parent | 59780d2a4ea9165089b953c3fb1f2883d4a0cb27 (diff) | |
download | ranger-58376f3898a4bdc42f2c9074850c17e765d3d3ea.tar.gz |
Switch to testing after lower casing for consistency
-rwxr-xr-x | ranger/config/commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 27919541..2d722d0e 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -698,7 +698,7 @@ class delete(Command): return self._tab_directory_content() def _question_callback(self, files, answer): - if answer == 'y' or answer == 'Y': + if answer.lower() == 'y': self.fm.delete(files) @@ -756,7 +756,7 @@ class trash(Command): return self._tab_directory_content() def _question_callback(self, files, answer): - if answer == 'y' or answer == 'Y': + if answer.lower() == 'y': self.fm.execute_file(files, label='trash') |