about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-15 16:29:20 +0200
committerhut <hut@lavabit.com>2009-07-15 16:29:20 +0200
commitdaae3368e48e31690f5487ee924753d1036c898a (patch)
tree9667463470a292e82f04d4ddbed312072034447b
parent6da5b6e34fd2eeda34533e2d01f362c929148b48 (diff)
downloadranger-daae3368e48e31690f5487ee924753d1036c898a.tar.gz
only descend 1 dir when using right mouse on first row
i think thats more intuitive
-rw-r--r--code/keys.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/code/keys.rb b/code/keys.rb
index 5876df6b..cef8d597 100644
--- a/code/keys.rb
+++ b/code/keys.rb
@@ -496,9 +496,10 @@ module Fm
 					case mouse.x
 					when ranges[0]
 						descend
-						descend
 						if mouse.click3?
 							@pwd.pos = get_offset( @path[-1], lines ) + mouse.y - 1
+						else
+							descend
 						end
 					when ranges[1]
 						descend