summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-01-24 16:17:36 +0100
committerhut <hut@lepus.uberspace.de>2016-01-24 16:17:36 +0100
commitced55701672cb1dc81dfa2a40b76f27007f6c40a (patch)
tree061e61cbd9e0be975d7aab101feb3c7b7e9c3ae9
parentc7d79df4e519c8004c99f210b18634b8b834d2c3 (diff)
downloadranger-ced55701672cb1dc81dfa2a40b76f27007f6c40a.tar.gz
core.actions: in delete(), renamed "narg" to "files"
-rw-r--r--ranger/core/actions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 976d2f3d..634bb7f8 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -1306,13 +1306,13 @@ class Actions(FileManagerAware, SettingsAware):
         self.loader.add(loadable, append=append)
         self.do_cut = False
 
-    def delete(self, narg=None):
+    def delete(self, files=None):
         # XXX: warn when deleting mount points/unseen marked files?
         self.notify("Deleting!")
-        if narg is None:
+        if files is None:
             selected = self.thistab.get_selection()
         else:
-            selected = [File(os.path.expanduser(f)) for f in narg]
+            selected = [File(os.path.expanduser(f)) for f in files]
         self.copy_buffer -= set(selected)
         if selected:
             for f in selected: