]> git.cworth.org Git - sup/commitdiff
more minibuf say vs ask tweaking
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 24 Nov 2007 20:31:58 +0000 (20:31 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 24 Nov 2007 20:31:58 +0000 (20:31 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@719 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/buffer.rb
lib/sup/modes/label-list-mode.rb

index b2106718f21a57ec3ad0b27d39c716dedf90e2d7..4cdfdbb0e875f0d164f07c899712610f9e3a0f2a 100644 (file)
@@ -475,14 +475,11 @@ class BufferManager
     Ncurses.sync do
       tf.activate question, default, &block
       @dirty = true
-      #draw_screen :skip_minibuf => true, :sync => false
-      draw_screen :sync => false
+      draw_screen :skip_minibuf => true, :sync => false
+      tf.position_cursor
+      Ncurses.refresh
     end
 
-    ret = nil
-    tf.position_cursor
-    Ncurses.sync { Ncurses.refresh }
-
     while true
       c = Ncurses.nonblocking_getch
       next unless c # getch timeout
@@ -497,11 +494,11 @@ class BufferManager
         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
+        draw_screen
         tf.position_cursor
       elsif tf.roll_completions?
         completion_buf.mode.roll
-        draw_screen :skip_minibuf => true
+        draw_screen
         tf.position_cursor
       end
 
index f02f8a026cf65036496ff5ed0f84da234c8e369e..9203773b1c9756fc9094f8d88c0d66e7bd49e76e 100644 (file)
@@ -21,6 +21,14 @@ class LabelListMode < LineCursorMode
   def lines; @text.length end
   def [] i; @text[i] end
 
+  def status
+    if true
+      "No labels with unread messages"
+    else
+      super
+    end
+  end
+
 protected
   def toggle_show_unread_only
     @unread_only = !@unread_only