commit 899412cc771ea86842d4018263155bdd7a48ca19
parent b52fe1696188e51c3a203c1ea61b0fecf8a4fe12
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Sat, 24 Nov 2007 20:31:58 +0000
more minibuf say vs ask tweaking
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@719 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
2 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
@@ -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
diff --git a/lib/sup/modes/label-list-mode.rb b/lib/sup/modes/label-list-mode.rb
@@ -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