From 1aa06810e0485399b312263bc5020c758dedaacf Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 13 Apr 2015 23:17:29 +0200 Subject: config.commands: fix tab completion in :linemode --- ranger/config/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit 1.4.1-2-gfad0