degesch: optimize buffer_print_backlog()
Apparently readline can be really, really slow at redrawing.
This commit is contained in:
parent
ef2b4d9a01
commit
990e8d7d94
|
@ -2759,6 +2759,8 @@ buffer_remove (struct app_context *ctx, struct buffer *buffer)
|
||||||
static void
|
static void
|
||||||
buffer_print_backlog (struct app_context *ctx, struct buffer *buffer)
|
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);
|
print_status ("%s", buffer->name);
|
||||||
|
|
||||||
// That is, minus the buffer switch line and the readline prompt
|
// 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;
|
buffer->highlighted = false;
|
||||||
|
|
||||||
refresh_prompt (ctx);
|
refresh_prompt (ctx);
|
||||||
|
input_show (&ctx->input);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue