summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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):