From 7407bde0436f5c921f70ac22cdd966cbd318288c Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 16 Jul 2009 02:42:01 +0200 Subject: allow to add comments in help definitions --- code/help.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0