]> git.cworth.org Git - sup/commitdiff
miscellaneous cleanups and improvements
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 2 Feb 2007 02:39:01 +0000 (02:39 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 2 Feb 2007 02:39:01 +0000 (02:39 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@295 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/edit-message-mode.rb
lib/sup/modes/thread-index-mode.rb
lib/sup/poll.rb
lib/sup/textfield.rb

index 01a1be216d26b2cdfa1af7934aa395866f34de35..2f6563f7201dadd3669893bf4a10c7fde189fe60 100644 (file)
@@ -114,7 +114,7 @@ protected
 
     acct = AccountManager.account_for(from_email) || AccountManager.default_account
     SentManager.write_sent_message(date, from_email) { |f| write_message f, true, date }
-    BufferManager.flash "sending..."
+    BufferManager.flash "Sending..."
 
     IO.popen(acct.sendmail, "w") { |p| write_message p, true, date }
 
index 3eb96c73831f1617f21d0bb0aae47bd5f06e2011..6292554ae108b4f11d5189752f3b61f120a79029 100644 (file)
@@ -259,7 +259,7 @@ 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(" ") + " "
 
     answer = BufferManager.ask :edit_labels, "edit labels: ", label_string
     return unless answer
index 272126e08cfabb0003800c4d56e3703584c95ea5..5052fc732160c7d78af87ee3b52ba7290bb36870 100644 (file)
@@ -23,8 +23,6 @@ class PollManager
     num, numi = buffer.mode.poll
     if num > 0
       BufferManager.flash "Loaded #{num} new messages, #{numi} to inbox." 
-    else
-      BufferManager.flash "No new messages."
     end
     [num, numi]
   end
index 337a4fb66b650f49d94a9f738e6c62661f67e83d..198de127e6e5565d34571c6296adeff95b859887 100644 (file)
@@ -29,6 +29,7 @@ class TextField
     @w.mvaddstr @y, 0, @question
     Ncurses.curs_set 1
     Ncurses::Form.form_driver @form, Ncurses::Form::REQ_END_FIELD
+    Ncurses::Form.form_driver @form, Ncurses::Form::REQ_NEXT_CHAR if @history[@i] =~ / $/ # fucking RETARDED!!!!
   end
 
   def deactivate