about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-16 02:42:01 +0200
committerhut <hut@lavabit.com>2009-07-16 02:42:01 +0200
commit7407bde0436f5c921f70ac22cdd966cbd318288c (patch)
treed5f6cbc1143d6101d9ab6612a74aa3b755c843bb
parentbd7c8105e8ae842210713a41187af608bdcf1f9c (diff)
downloadranger-7407bde0436f5c921f70ac22cdd966cbd318288c.tar.gz
allow to add comments in help definitions
-rw-r--r--code/help.rb3
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