diff options
author | hut <hut@lavabit.com> | 2012-08-05 18:00:03 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-08-05 18:01:04 +0200 |
commit | 0fa04791ec259fc2ccce3d2a3fc10df43bb6bd4d (patch) | |
tree | e0ebefaaca9034e2b321ee944bfbfcdbe3672855 /ranger | |
parent | f75af43c7ccbbb7ef8a6941ccec274078abd92ce (diff) | |
download | ranger-0fa04791ec259fc2ccce3d2a3fc10df43bb6bd4d.tar.gz |
config.commands: fixed bug in :delete and :find
I accidently wrote 'fm.thisfile.cf' which had to be changed to 'fm.thisfile'
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/config/commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 8579b019..2eff68e6 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -369,7 +369,7 @@ class find(Command): self.count += 1 if self.count == 1: cwd.move(to=(cwd.pointer + i) % len(cwd.files)) - self.fm.thisfile.cf = cwd.pointed_obj + self.fm.thisfile = cwd.pointed_obj if self.count > 1: return False i += 1 @@ -491,7 +491,7 @@ class delete(Command): return cwd = self.fm.thisdir - cf = self.fm.thisfile.cf + cf = self.fm.thisfile if cwd.marked_items or (cf.is_directory and not cf.is_link \ and len(os.listdir(cf.path)) > 0): |