From 3d74657cc18577fdd3fa90dbee74e69918c46c12 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Sun, 4 Feb 2007 22:47:48 +0000 Subject: [PATCH] fixed label editing trailing space issue git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@299 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- 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 index 714d646..190afca 100644 --- 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 -- 2.45.2