exe/githelp in githelp-0.2.12 vs exe/githelp in githelp-0.2.13
- old
+ new
@@ -133,12 +133,14 @@
io.puts " #{entry[1]}"
}
io.close_write
io.gets
}
- cmd = res.sub(/^\s*/,'')
- puts cmd
- system cmd
+ if res
+ cmd = res.sub(/^\s*/,'')
+ puts cmd
+ system cmd
+ end
else
res = IO.popen(pager, "w") {|io|
list.each_with_index { |entry,ind|
io.puts "#[#{ind}] #{entry[0]}"
io.puts " #{entry[1]}"