lib/dmenu.rb in markw-dmenu-1.1.0 vs lib/dmenu.rb in markw-dmenu-1.2.0
- old
+ new
@@ -56,10 +56,10 @@
else
$stderr.puts "Couldn't list #{line.inspect}"
nil
end
s
- end.reject! {|x| x.nil? or x.empty? or x.match(/\s+/) }
+ end.reject! {|x| x.nil? or x.empty? or x.match(/^\s+$/) }
cmdline = "dmenu -f -p \"#{prompt}\" -nf \"#{fg_color}\" \
-nb \"#{bg_color}\" \
-sb \"#{sel_bg_color}\" \
-sf \"#{sel_fg_color}\" \