about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/keyapi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/keyapi.py b/ranger/keyapi.py
index 9cbe3612..95443b6d 100644
--- a/ranger/keyapi.py
+++ b/ranger/keyapi.py
@@ -50,6 +50,8 @@ class Wrapper(object):
 		self.__firstattr__ = firstattr
 
 	def __getattr__(self, attr):
+		if attr.startswith('_'):
+			raise AttributeError
 		def wrapper(*real_args, **real_keywords):
 			def function(command_argument):
 				args, kws = real_args, real_keywords