summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-04-13 23:17:29 +0200
committerhut <hut@lepus.uberspace.de>2015-04-13 23:17:29 +0200
commit1aa06810e0485399b312263bc5020c758dedaacf (patch)
tree2667f49b934a0220e72453dc6a40fb80736a512b
parent59450640fe0374f27e458a917ac74d6f6bf200b4 (diff)
downloadranger-1aa06810e0485399b312263bc5020c758dedaacf.tar.gz
config.commands: fix tab completion in :linemode
-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):