commit f4cd4301746ae71e7e58b0ef78a269278d299318
parent 86709abacd87f392f813d72a9a3e3a08553649b5
Author: Scott Bonds <scott@ggr.com>
Date: Wed, 24 Sep 2014 17:06:08 -0700
allow goto on all text
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/sup/modes/thread_view_mode.rb b/lib/sup/modes/thread_view_mode.rb
@@ -733,7 +733,7 @@ EOS
end
def goto_uri
- return unless (chunk = @chunk_lines[curpos]) && chunk.is_a?(Chunk::Text)
+ return unless (chunk = @chunk_lines[curpos])
return unless HookManager.enabled? "goto"
# @text is a list of lines with this format:
@@ -761,6 +761,7 @@ EOS
rescue URI::InvalidURIError => e
debug "not a uri: #{e}"
+ BufferManager.flash "No URL found"
# Do nothing, this is an ok flow
end
end