summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2016-01-24 23:24:51 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2016-01-24 23:25:17 +0100
commitbd0da6444fa8836aed6fb52677c4e1619e1876c8 (patch)
treeda225e52aebbd248b6e238029f47c467d123f279
parentdeb16c1da3b0301a04487e2bfb753536176264c8 (diff)
downloadranger-bd0da6444fa8836aed6fb52677c4e1619e1876c8.tar.gz
Restore :delete backward compatiblity
-rw-r--r--ranger/core/actions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index a9618746..85272326 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -1306,9 +1306,12 @@ class Actions(FileManagerAware, SettingsAware):
         self.loader.add(loadable, append=append)
         self.do_cut = False
 
-    def delete(self, files):
+    def delete(self, files=None):
         # XXX: warn when deleting mount points/unseen marked files?
         self.notify("Deleting!")
+        if files is None:
+            # Backward compatiblity.
+            files = (f.path for f in self.thistab.get_selection())
         files = [os.path.abspath(f) for f in files]
         for f in files:
             # Untag the deleted files.