summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-08-05 18:00:03 +0200
committerhut <hut@lavabit.com>2012-08-05 18:01:04 +0200
commit0fa04791ec259fc2ccce3d2a3fc10df43bb6bd4d (patch)
treee0ebefaaca9034e2b321ee944bfbfcdbe3672855 /ranger
parentf75af43c7ccbbb7ef8a6941ccec274078abd92ce (diff)
downloadranger-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.py4
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):