From bd0da6444fa8836aed6fb52677c4e1619e1876c8 Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Sun, 24 Jan 2016 23:24:51 +0100 Subject: Restore :delete backward compatiblity --- ranger/core/actions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ranger') 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. -- cgit 1.4.1-2-gfad0