diff options
author | toonn <toonn@toonn.io> | 2019-03-03 21:18:26 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-03-03 21:18:26 +0100 |
commit | aead73e9488be599e92418cea5d9523da459fde1 (patch) | |
tree | 58b6bbaf1cc47be7bbb03b628660a779c0bbf33d | |
parent | a3a9ea373129731fb923927ad32ee30016112f69 (diff) | |
parent | f3f2dc27c302211e543a2e9a68e3db3bd218f35d (diff) | |
download | ranger-aead73e9488be599e92418cea5d9523da459fde1.tar.gz |
Merge branch 'slackhead-reset_previews'
Fixes #1483
-rwxr-xr-x | ranger/config/commands.py | 11 |
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 # -------------------------------- |