diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2016-01-24 23:24:51 +0100 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2016-01-24 23:25:17 +0100 |
commit | bd0da6444fa8836aed6fb52677c4e1619e1876c8 (patch) | |
tree | da225e52aebbd248b6e238029f47c467d123f279 /ranger | |
parent | deb16c1da3b0301a04487e2bfb753536176264c8 (diff) | |
download | ranger-bd0da6444fa8836aed6fb52677c4e1619e1876c8.tar.gz |
Restore :delete backward compatiblity
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 5 |
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. |