summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 80eb7fd9..b52ae0ed 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -575,6 +575,13 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 	# --------------------------
 	# -- Previews
 	# --------------------------
+	def update_preview(self, path):
+		try:
+			del self.previews[path]
+			self.ui.need_redraw = True
+		except:
+			return False
+
 	def get_preview(self, path, width, height):
 		if self.settings.preview_script and self.settings.use_preview_script:
 			# self.previews is a 2 dimensional dict: