lib/sup/buffer.rb in sup-0.16.0 vs lib/sup/buffer.rb in sup-0.17.0

- old
+ new

@@ -97,11 +97,11 @@ @mode.blur end end class BufferManager - include Singleton + include Redwood::Singleton attr_reader :focus_buf ## we have to define the key used to continue in-buffer search here, because ## it has special semantics that BufferManager deals with---current searches @@ -545,10 +545,10 @@ if tf.new_completions? kill_buffer completion_buf if completion_buf shorts = tf.completions.map { |full, short| short } - prefix_len = shorts.shared_prefix.length + prefix_len = shorts.shared_prefix(caseless=true).length mode = CompletionMode.new shorts, :header => "Possible completions for \"#{tf.value}\": ", :prefix_len => prefix_len completion_buf = spawn "<completions>", mode, :height => 10 draw_screen :skip_minibuf => true