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))
94 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306