summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-04 16:56:06 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-04 16:58:25 +0200
commit990e8d7d948ab062fa612ff79bbd35dda0082f14 (patch)
tree4565d6cd2f2c8ca206425698d0ba901819a6c241 /degesch.c
parentef2b4d9a014b6b4bbd7967976f7e586dc3a620ad (diff)
downloadxK-990e8d7d948ab062fa612ff79bbd35dda0082f14.tar.gz
xK-990e8d7d948ab062fa612ff79bbd35dda0082f14.tar.xz
xK-990e8d7d948ab062fa612ff79bbd35dda0082f14.zip
degesch: optimize buffer_print_backlog()
Apparently readline can be really, really slow at redrawing.
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c3
1 files changed, 3 insertions, 0 deletions
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