summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parent59450640fe0374f27e458a917ac74d6f6bf200b4 (diff)
downloadranger-1aa06810e0485399b312263bc5020c758dedaacf.tar.gz
config.commands: fix tab completion in :linemode
Diffstat (limited to 'ranger')
-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):
143'>143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214