From bb94f089a21fb015db0d6e81ed7084875bf4af35 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Mon, 17 Aug 2009 17:20:28 +0430 Subject: [PATCH] term: enter lazy mode when >15 chars queued --- term.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/term.c b/term.c index 69ca26b..5b04477 100644 --- a/term.c +++ b/term.c @@ -368,10 +368,13 @@ static void ctlseq(void); void term_read(void) { ctlseq(); - lazy = 1; - while (ptycur < ptylen) + while (ptycur < ptylen) { + if (ptylen - ptycur > 15) + lazy = 1; ctlseq(); - lazy_flush(); + } + if (lazy) + lazy_flush(); lazy = 0; } -- 2.11.4.GIT