diff options
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 6df73cdf..0b4948a0 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -67,13 +67,15 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): self.mode = mode self.ui.status.request_redraw() - def set_option_from_string(self, option_name, value): + def set_option_from_string(self, option_name, value, localpath=None): if option_name not in ALLOWED_SETTINGS: raise ValueError("The option named `%s' does not exist" % option_name) if not isinstance(value, str): raise ValueError("The value for an option needs to be a string.") - self.settings[option_name] = self._parse_option_value(option_name, value) + + self.settings.set(option_name, self._parse_option_value(option_name, value), localpath) + def _parse_option_value(self, name, value): types = self.fm.settings.types_of(name) |