Kouhei Sutou
kous****@users*****
Thu May 11 10:41:21 JST 2006
Index: kazehakase/data/ext/ruby/kz/actions/install-as-ruby-extension.rb diff -u kazehakase/data/ext/ruby/kz/actions/install-as-ruby-extension.rb:1.3 kazehakase/data/ext/ruby/kz/actions/install-as-ruby-extension.rb:1.4 --- kazehakase/data/ext/ruby/kz/actions/install-as-ruby-extension.rb:1.3 Sat Feb 4 22:53:22 2006 +++ kazehakase/data/ext/ruby/kz/actions/install-as-ruby-extension.rb Thu May 11 10:41:21 2006 @@ -21,8 +21,10 @@ def act_install_as_ruby_extension(action, group, kz) statusbar_timeout = 3 * 1000 statusbar_id = kz.statusbar.get_context_id(action.name) + uri = nil uri = kz.mouse_event_info.link if kz.mouse_event_info - uri ||= kz.current_page.location + uri = kz.current_page.location if uri.nil? and kz.current_page + return if uri.nil? filename = extract_extension_filename_from_uri(uri) FileUtils.mkdir_p(File.dirname(filename)) Index: kazehakase/data/ext/ruby/kz/actions/move-to-anchor.rb diff -u kazehakase/data/ext/ruby/kz/actions/move-to-anchor.rb:1.1 kazehakase/data/ext/ruby/kz/actions/move-to-anchor.rb:1.2 --- kazehakase/data/ext/ruby/kz/actions/move-to-anchor.rb:1.1 Tue Apr 25 11:46:44 2006 +++ kazehakase/data/ext/ruby/kz/actions/move-to-anchor.rb Thu May 11 10:41:21 2006 @@ -1,5 +1,6 @@ def move_to_anchor(kz) page = kz.current_page + return unless page uri = page.location anchors = page.dest_anchors index = nil Index: kazehakase/data/ext/ruby/kz/actions/text-link.rb diff -u kazehakase/data/ext/ruby/kz/actions/text-link.rb:1.3 kazehakase/data/ext/ruby/kz/actions/text-link.rb:1.4 --- kazehakase/data/ext/ruby/kz/actions/text-link.rb:1.3 Sat Feb 4 22:53:22 2006 +++ kazehakase/data/ext/ruby/kz/actions/text-link.rb Thu May 11 10:41:21 2006 @@ -2,6 +2,7 @@ def act_text_link(action, group, kz) statusbar_timeout = 3 * 1000 statusbar_id = kz.statusbar.get_context_id(action.name) + return unless kz.current_page uri = kz.current_page.selection_string normalized_uri = NKF.nkf("-m0 -Z -Z1 -W -w", uri).gsub(/\s/, '') matched = false