Skip to content

Commit

Permalink
Don’t show error when canceling documentation lookup dialog
Browse files Browse the repository at this point in the history
Also remove the use of __CF_USER_TEXT_ENCODING as this is no longer necessary to ensure that pbpaste outputs UTF-8.
  • Loading branch information
sorbits committed Jan 13, 2013
1 parent bdff0ed commit ebbd8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Support/lib/docset_query.rb
Expand Up @@ -172,10 +172,10 @@ def documentation_for_word
query = $& if query.to_s =~ /\w*/

if query.to_s.empty?
query = %x{ __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 /usr/bin/pbpaste -pboard find }
query = %x{ /usr/bin/pbpaste -pboard find }
query = $& if query =~ /\w+/
query = TextMate::UI.request_string :title => "Documentation Search", :default => query, :prompt => "Search documentation for word"
abort if query.nil?
TextMate.exit_discard if query.nil?
end

results = search_docs_all(query)
Expand Down

0 comments on commit ebbd8d8

Please sign in to comment.