summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/config/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 6399152f..22fd49a5 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -435,7 +435,8 @@ class default_linemode(Command):
     def tab(self):
         mode = self.arg(1)
         return (self.arg(0) + " " + linemode
-                for linemode in self.fm.thisfile.linemode_dict.keys())
+                for linemode in self.fm.thisfile.linemode_dict.keys()
+                if linemode.startswith(self.arg(1)))
 
 
 class quit(Command):