summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/actions.py6
-rw-r--r--ranger/defaults/keys.py6
2 files changed, 7 insertions, 5 deletions
diff --git a/ranger/actions.py b/ranger/actions.py
index 681751e3..08495ce8 100644
--- a/ranger/actions.py
+++ b/ranger/actions.py
@@ -18,8 +18,10 @@ class Actions(EnvironmentAware, SettingsAware):
 				self.env.cf = self.env.pwd.pointed_file
 
 	def interrupt(self):
-		"""Waits a short time.
-		If CTRL+C is pressed while waiting, the program will be exited"""
+		"""
+		Waits a short time.
+		If CTRL+C is pressed while waiting, the program will be exited.
+		"""
 		import time
 		self.env.key_clear()
 		try:
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 9129541e..5586a4a4 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -135,7 +135,7 @@ def initialize_commands(command_list):
 	bind('k', KEY_UP, jk(-1))
 
 	bind('h', KEY_LEFT, KEY_BACKSPACE, DEL, lambda fm, n: \
-			fm.move_left(n))
+			fm.move_left(n or 1))
 
 	command_list.rebuild_paths()
 
@@ -147,10 +147,10 @@ def initialize_console_commands(command_list):
 		command_list.bind(args[-1], *args[:-1])
 
 	def do(method, *args, **kw):
-		return lambda fm: getattr(fm, method)(*args, **kw)
+		return lambda widget: getattr(widget, method)(*args, **kw)
 
 	def do_fm(method, *args, **kw):
-		return lambda con: getattr(con.fm, method)(*args, **kw)
+		return lambda widget: getattr(widget.fm, method)(*args, **kw)
 
 	# movement
 	bind(KEY_UP, do('history_move', -1))