summary refs log tree commit diff stats
path: root/ranger/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/commands.py')
-rw-r--r--ranger/commands.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/commands.py b/ranger/commands.py
index c552053f..0903e00a 100644
--- a/ranger/commands.py
+++ b/ranger/commands.py
@@ -324,8 +324,12 @@ class rename(Command):
 	"""
 
 	def execute(self):
+		from ranger.fsobject.file import File
 		line = parse(self.line)
 		self.fm.rename(self.fm.env.cf, line.rest(1))
+		f = File(line.rest(1))
+		self.fm.env.pwd.pointed_obj = f
+		self.fm.env.cf = f
 
 	def tab(self):
 		return self._tab_directory_content()