summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-25 00:45:46 +0100
committerhut <hut@lavabit.com>2009-12-25 00:45:46 +0100
commitb37c2b62a11da70f9a2fcc369701fe3d70df1494 (patch)
tree333ee45175bc6b4f6472119647f0003d7f1fafb6 /ranger
parent356592fa1fa165e38d8ec893bc191a2bbe5ce961 (diff)
downloadranger-b37c2b62a11da70f9a2fcc369701fe3d70df1494.tar.gz
clean ups
Diffstat (limited to 'ranger')
-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))