about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-01-15 22:12:32 +0100
committertoonn <toonn@toonn.io>2020-07-05 15:23:43 +0200
commit58376f3898a4bdc42f2c9074850c17e765d3d3ea (patch)
treeb1fdd51f6a06cec0913266c801cfa5117f9cff30
parent59780d2a4ea9165089b953c3fb1f2883d4a0cb27 (diff)
downloadranger-58376f3898a4bdc42f2c9074850c17e765d3d3ea.tar.gz
Switch to testing after lower casing for consistency
-rwxr-xr-xranger/config/commands.py4
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')