Skip to content

Commit

Permalink
Merge branch 'simongregory/master' (early part)
Browse files Browse the repository at this point in the history
  • Loading branch information
JEG2 committed Nov 10, 2009
2 parents 55e1f39 + 3ea6945 commit 52e21e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Support/bin/linked_ri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ def ri(term)
if mode.nil? then

term = STDIN.read.strip

if term.empty?
term = TextMate::UI.request_string( :title => "Ruby Documentation Search",
:prompt => "Enter a term to search for:",
:button1 => "search")
end

TextMate.exit_show_tool_tip("Please select a term to look up.") if term.empty?

term, documentation = ri(term)
Expand Down

0 comments on commit 52e21e9

Please sign in to comment.