diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-04 16:56:06 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-04 16:58:25 +0200 |
commit | 990e8d7d948ab062fa612ff79bbd35dda0082f14 (patch) | |
tree | 4565d6cd2f2c8ca206425698d0ba901819a6c241 /degesch.c | |
parent | ef2b4d9a014b6b4bbd7967976f7e586dc3a620ad (diff) | |
download | xK-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |