summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2018-01-03 23:33:41 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2018-01-03 23:49:07 +0100
commit62e8308fbef35ef76fbe3679fb08aa9734fbb313 (patch)
treee51a12f3634b283148b07d7ae6ec5c83c7e3a391
parenta965ba18b4735ef9c4cd3506c6b4988d1fd85e62 (diff)
downloadranger-62e8308fbef35ef76fbe3679fb08aa9734fbb313.tar.gz
config.commands: Make the column_ratios setting completion actually useful
A stringified list, as before, cannot be used in the :set command.
-rwxr-xr-xranger/config/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index df8022cf..6fd34ee1 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -449,6 +449,8 @@ class set_(Command):
             if name == "colorscheme":
                 return sorted(self.firstpart + colorscheme for colorscheme
                               in get_all_colorschemes(self.fm))
+            if name == "column_ratios":
+                return self.firstpart + ",".join(map(str, settings[name]))
             return self.firstpart + str(settings[name])
         if bool in settings.types_of(name):
             if 'true'.startswith(value.lower()):