From 990e8d7d948ab062fa612ff79bbd35dda0082f14 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 4 Jul 2015 16:56:06 +0200 Subject: degesch: optimize buffer_print_backlog() Apparently readline can be really, really slow at redrawing. --- degesch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/degesch.c b/degesch.c index bfd3802..2485170 100644 --- a/degesch.c +++ b/degesch.c @@ -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 -- cgit v1.2.3-70-g09d2