diff options
-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. |