From 899412cc771ea86842d4018263155bdd7a48ca19 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Sat, 24 Nov 2007 20:31:58 +0000 Subject: [PATCH] more minibuf say vs ask tweaking git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@719 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/buffer.rb | 13 +++++-------- lib/sup/modes/label-list-mode.rb | 8 ++++++++ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index b210671..4cdfdbb 100644 --- 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 "", 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 index f02f8a0..9203773 100644 --- 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 -- 2.45.2