summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-03-03 21:18:26 +0100
committertoonn <toonn@toonn.io>2019-03-03 21:18:26 +0100
commitaead73e9488be599e92418cea5d9523da459fde1 (patch)
tree58b6bbaf1cc47be7bbb03b628660a779c0bbf33d
parenta3a9ea373129731fb923927ad32ee30016112f69 (diff)
parentf3f2dc27c302211e543a2e9a68e3db3bd218f35d (diff)
downloadranger-aead73e9488be599e92418cea5d9523da459fde1.tar.gz
Merge branch 'slackhead-reset_previews'
Fixes #1483
-rwxr-xr-xranger/config/commands.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index fe628e75..36a6070e 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1639,6 +1639,17 @@ class flat(Command):
         self.fm.thisdir.flat = level
         self.fm.thisdir.load_content()
 
+
+class reset_previews(Command):
+    """:reset_previews
+
+    Reset the file previews.
+    """
+    def execute(self):
+        self.fm.previews = {}
+        self.fm.ui.need_redraw = True
+
+
 # Version control commands
 # --------------------------------