summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/settings.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ranger/container/settings.py b/ranger/container/settings.py
index bec366df..54cbeee6 100644
--- a/ranger/container/settings.py
+++ b/ranger/container/settings.py
@@ -117,6 +117,11 @@ class Settings(SignalDispatcher, FileManagerAware):
 
     def get(self, name, path=None):
         assert name in ALLOWED_SETTINGS, "No such setting: {0}!".format(name)
+        if not path:
+            try:
+                path = self.fm.thisdir.path
+            except:
+                pass
         if path and path in self._localsettings and name in self._localsettings[path]:
             return self._localsettings[path][name]
         elif name in self._settings: