diff options
author | hut <hut@lepus.uberspace.de> | 2015-10-20 19:10:49 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-10-20 19:10:49 +0200 |
commit | ede5bf0f3f325e1df64f09c5b387d750d216a4a3 (patch) | |
tree | ec52f091232123640fcd05e86742b7578ece7a62 /ranger | |
parent | d69f1ed3207c785d1a39ddd2992f6abb021b7540 (diff) | |
download | ranger-ede5bf0f3f325e1df64f09c5b387d750d216a4a3.tar.gz |
config/commands.py: fix tab completion order of `:set`
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/config/commands.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 18615f4f..4f7f109a 100644 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -342,12 +342,12 @@ class set_(Command): if not name: return sorted(self.firstpart + setting for setting in settings) if not value and not name_done: - return (self.firstpart + setting for setting in settings \ + return sorted(self.firstpart + setting for setting in settings \ if setting.startswith(name)) if not value: # Cycle through colorschemes when name, but no value is specified if name == "colorscheme": - return (self.firstpart + colorscheme for colorscheme \ + return sorted(self.firstpart + colorscheme for colorscheme \ in get_all_colorschemes()) return self.firstpart + str(settings[name]) if bool in settings.types_of(name): @@ -357,7 +357,7 @@ class set_(Command): return self.firstpart + 'False' # Tab complete colorscheme values if incomplete value is present if name == "colorscheme": - return (self.firstpart + colorscheme for colorscheme \ + return sorted(self.firstpart + colorscheme for colorscheme \ in get_all_colorschemes() if colorscheme.startswith(value)) |