diff options
author | hut <hut@lepus.uberspace.de> | 2015-04-13 23:17:29 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-04-13 23:17:29 +0200 |
commit | 1aa06810e0485399b312263bc5020c758dedaacf (patch) | |
tree | 2667f49b934a0220e72453dc6a40fb80736a512b /ranger | |
parent | 59450640fe0374f27e458a917ac74d6f6bf200b4 (diff) | |
download | ranger-1aa06810e0485399b312263bc5020c758dedaacf.tar.gz |
config.commands: fix tab completion in :linemode
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/config/commands.py | 3 |
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): |