From ede5bf0f3f325e1df64f09c5b387d750d216a4a3 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 20 Oct 2015 19:10:49 +0200 Subject: config/commands.py: fix tab completion order of `:set` --- ranger/config/commands.py | 6 +++--- 1 file 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)) -- cgit 1.4.1-2-gfad0