sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 3d74657cc18577fdd3fa90dbee74e69918c46c12
parent e3ee7f0e444feafe18e36efc0aa79814bc62d806
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Sun,  4 Feb 2007 22:47:48 +0000

fixed label editing trailing space issue

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@299 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/modes/thread-index-mode.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -260,7 +260,8 @@ class ThreadIndexMode < LineCursorMode
     thread = @threads[curpos]
     speciall = (@hidden_labels + LabelManager::RESERVED_LABELS).uniq
     keepl, modifyl = thread.labels.partition { |t| speciall.member? t }
-    label_string = modifyl.join(" ") + " "
+    label_string = modifyl.join(" ")
+    label_string += " " unless label_string.empty?
 
     answer = BufferManager.ask :edit_labels, "edit labels: ", label_string
     return unless answer