diff options
author | hut <hut@lavabit.com> | 2009-07-19 03:22:58 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-19 03:22:58 +0200 |
commit | 87aab6c8509710740a99ac1279689cd0dd97118f (patch) | |
tree | 18ef8511a5f0e70977bec4209ee7dfa100b4a9ab | |
parent | b591a0533a2b9fddb20c16e1c03e8d6ad91c60f8 (diff) | |
download | ranger-87aab6c8509710740a99ac1279689cd0dd97118f.tar.gz |
fixed #23 (key combination rAr does not work)
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | code/keys.rb | 2 | ||||
-rw-r--r-- | code/runcontext.rb | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/TODO b/TODO index a29fc629..2ca5a12c 100644 --- a/TODO +++ b/TODO @@ -30,7 +30,7 @@ Minor Issues (X) #14 09/07/18 Sorting sometimes doesn't work (X) #16 09/07/19 incorrect pointer in the columns after sorting ( ) #18 09/07/19 abbreviate path at the top - ( ) #23 09/07/19 key combination rAr does not work + (X) #23 09/07/19 key combination rAr does not work Features diff --git a/code/keys.rb b/code/keys.rb index 583171e8..add38dbc 100644 --- a/code/keys.rb +++ b/code/keys.rb @@ -368,7 +368,7 @@ module Fm Action.run(RunContext.new(getfiles, nil, nil, 'editor')) end - when /^[ri](\d*)([adetw]*)[ri]$/ + when /^[ri](\d*)(?i:([adetw]*))[ri]$/ run_context = RunContext.new(getfiles, $1, $2) Action.run(run_context) diff --git a/code/runcontext.rb b/code/runcontext.rb index df9f3a81..f39e80d3 100644 --- a/code/runcontext.rb +++ b/code/runcontext.rb @@ -41,6 +41,10 @@ class RunContext @files = [files.dup] end self.flags = flags || '' + + if !@all and ( cf = Fm.currentfile ).is_a? Directory::Entry + @files = [cf] + end @files.reject! {|file| file.handler == nil or !file.exists? |