diff options
author | hut <hut@lavabit.com> | 2009-07-16 02:42:01 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-16 02:42:01 +0200 |
commit | 7407bde0436f5c921f70ac22cdd966cbd318288c (patch) | |
tree | d5f6cbc1143d6101d9ab6612a74aa3b755c843bb /code/help.rb | |
parent | bd7c8105e8ae842210713a41187af608bdcf1f9c (diff) | |
download | ranger-7407bde0436f5c921f70ac22cdd966cbd318288c.tar.gz |
allow to add comments in help definitions
Diffstat (limited to 'code/help.rb')
-rw-r--r-- | code/help.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/code/help.rb b/code/help.rb index d57d492c..e07d8d0a 100644 --- a/code/help.rb +++ b/code/help.rb @@ -42,6 +42,7 @@ module Fm if clicked inside the preview column, you cd into the selection if it is a folder or run the selection in mode 0 if its a file. +# Left click on the adress bar: Go to the pointed directory. @@ -263,7 +264,7 @@ END helptext.gsub("\t", " ").each_line do |l| if l =~ /^\s*key:(.*)$/ current = hash[$1] = "" - elsif current + elsif current and l !~ /^#/ current << l end end |