summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/config/commands.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 330920cf..b283a71b 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -500,13 +500,9 @@ class delete(Command):
 	allow_abbrev = False
 
 	def execute(self):
-		lastword = self.arg(-1)
-
-		if lastword.startswith('y'):
-			# user confirmed deletion!
-			return self.fm.delete()
-		elif self.line.startswith(DELETE_WARNING):
-			# user did not confirm deletion
+		if self.rest(1):
+			self.fm.notify("Error: delete takes no arguments! It deletes "
+					"the selected file(s).", bad=True)
 			return
 
 		cwd = self.fm.thisdir
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158