Kouhei Sutou
kous****@users*****
Thu May 11 13:31:47 JST 2006
Index: kazehakase/data/ext/ruby/kz/ruby-completion.rb diff -u kazehakase/data/ext/ruby/kz/ruby-completion.rb:1.2 kazehakase/data/ext/ruby/kz/ruby-completion.rb:1.3 --- kazehakase/data/ext/ruby/kz/ruby-completion.rb:1.2 Thu May 11 11:23:23 2006 +++ kazehakase/data/ext/ruby/kz/ruby-completion.rb Thu May 11 13:31:47 2006 @@ -24,7 +24,7 @@ module_function def complete(input, bind) - target = input.split(/[\s\"\'\`><=;|&\{\(]/).last + target = "#{input} DUMMY".split(/[\s><=;|&\{\(]+/)[-2] prefix = input[0...(input.rindex(target))] candidates = collect_completion_candidates(target, bind) candidates.compact.sort.collect do |message| Index: kazehakase/data/ext/ruby/kz/ruby-dialog.rb diff -u kazehakase/data/ext/ruby/kz/ruby-dialog.rb:1.10 kazehakase/data/ext/ruby/kz/ruby-dialog.rb:1.11 --- kazehakase/data/ext/ruby/kz/ruby-dialog.rb:1.10 Thu May 11 11:23:23 2006 +++ kazehakase/data/ext/ruby/kz/ruby-dialog.rb Thu May 11 13:31:47 2006 @@ -146,6 +146,9 @@ def init_input_entry @entry = Gtk::Entry.new + @entry_last_text = nil + update_widget_font(@entry, nil, "monospace") + setup_input_entry_ruby_completion @entry.signal_connect("key_press_event") do |widget, event| Kz.barrier do handle_input(event) @@ -162,9 +165,6 @@ update_input_entry_ruby_completion end end - update_widget_font(@entry, nil, "monospace") - setup_input_entry_ruby_completion - @entry_last_text = nil @entry end