summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/environment.py4
-rw-r--r--ranger/core/actions.py1
2 files changed, 5 insertions, 0 deletions
diff --git a/ranger/container/environment.py b/ranger/container/environment.py
index c67161ca..347bd2b1 100644
--- a/ranger/container/environment.py
+++ b/ranger/container/environment.py
@@ -120,6 +120,10 @@ class Environment(SettingsAware):
 			path.move_to_obj(last_path)
 			last_path = path
 
+	def ensure_correct_pointer(self):
+		if self.pwd:
+			self.pwd.correct_pointer()
+
 	def history_go(self, relative):
 		"""Move relative in history"""
 		if self.history:
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 849a2a52..e281afc4 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -513,6 +513,7 @@ class Actions(EnvironmentAware, SettingsAware):
 						os.remove(f.path)
 					except OSError as err:
 						self.notify(err)
+		self.env.ensure_correct_pointer()
 
 	def mkdir(self, name):
 		try: