diff options
author | toonn <toonn@toonn.io> | 2019-10-01 23:12:24 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-11-07 09:54:54 +0100 |
commit | 7aafd6b47e020085b298c4693ee4618447fdbfba (patch) | |
tree | 8d677e589a2cd54e95e49f4f8a3941675cf13b38 /ranger | |
parent | 1670524723da7c0ff00b23c02f22fb98f1bc6286 (diff) | |
download | ranger-7aafd6b47e020085b298c4693ee4618447fdbfba.tar.gz |
self is not available in default argument value
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index fe4b7967..18302431 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -1591,12 +1591,14 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m link(source_path, next_available_filename(target_path)) - def paste(self, overwrite=False, append=False, dest=self.thistab.path): + def paste(self, overwrite=False, append=False, dest=None): """:paste Paste the selected items into the current directory or to dest if provided. """ + if dest is None: + dest = self.thistab.path if isdir(dest): loadable = CopyLoader(self.copy_buffer, self.do_cut, overwrite, dest) |