summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-12-03 18:28:00 +0100
committerhut <hut@lepus.uberspace.de>2014-12-03 18:28:00 +0100
commit7417def6db0b5e9113335bd35e75ce1135e59253 (patch)
tree7e0069a6101c83f9438d4bcf33c0a375020e6baf
parenta941f97054a659cdf0f958ce1e5b7c99fed718fe (diff)
downloadranger-7417def6db0b5e9113335bd35e75ce1135e59253.tar.gz
core.actions: map linemode "normal" to "filemode"
-rw-r--r--ranger/core/actions.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 0596e1a6..26223b5f 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -155,12 +155,16 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
         """
         Change what is displayed as a filename.
 
-        "mode" may be: "filename", "permissions", "title"
-        "directory" specifies the directory. None means the current directory
-        "depth" specifies the recursion depth
+        - "mode" may be: "filename", "permissions", "title", the mode "normal"
+          is mapped to "filename".
+        - "directory" specifies the directory. None means the current directory
+        - "depth" specifies the recursion depth
         """
 
-        assert mode in ("filename", "permissions", "title")
+        assert mode in ("normal", "filename", "permissions", "title")
+
+        if mode == "normal":
+            mode = "filename"
 
         if directory is None:
             directory = self.fm.thisdir