summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/settingobject.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/container/settingobject.py b/ranger/container/settingobject.py
index 92af0a95..cbc56278 100644
--- a/ranger/container/settingobject.py
+++ b/ranger/container/settingobject.py
@@ -19,7 +19,7 @@ ALLOWED_SETTINGS = {
 	'draw_bookmark_borders': bool,
 	'draw_borders': bool,
 	'flushinput': bool,
-	'hidden_filter': str,
+	'hidden_filter': lambda x: isinstance(x, str) or hasattr(x, 'match'),
 	'init_function': (type(None), type(lambda:0)),
 	'load_default_rc': (bool, type(None)),
 	'max_console_history_size': (int, type(None)),