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
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
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