sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit f8eb1411944e6b86dfb37bda5b59d40733d00fd7
parent a1629988bbbeadc20f0d302954ca31103da670fd
Author: Gaute Hope <eg@gaute.vetsj.com>
Date:   Thu, 10 Apr 2014 23:22:25 +0200

Merge #287: completion-mode: Correctly set completion character

Diffstat:
M lib/sup/buffer.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
@@ -547,7 +547,7 @@ EOS
         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