degesch: optimize buffer_print_backlog()

Apparently readline can be really, really slow at redrawing.
This commit is contained in:
Přemysl Eric Janouch 2015-07-04 16:56:06 +02:00
parent ef2b4d9a01
commit 990e8d7d94
1 changed files with 3 additions and 0 deletions

View File

@ -2759,6 +2759,8 @@ buffer_remove (struct app_context *ctx, struct buffer *buffer)
static void
buffer_print_backlog (struct app_context *ctx, struct buffer *buffer)
{
// The prompt can take considerable time to redraw
input_hide (&ctx->input);
print_status ("%s", buffer->name);
// That is, minus the buffer switch line and the readline prompt
@ -2774,6 +2776,7 @@ buffer_print_backlog (struct app_context *ctx, struct buffer *buffer)
buffer->highlighted = false;
refresh_prompt (ctx);
input_show (&ctx->input);
}
static void