From: Jonas Fonseca Date: Sat, 31 Jan 2009 09:06:30 +0000 (+0100) Subject: Tune the view clearing to wait until 2 seconds has passed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb4bb8906cf89c541dd754879e5742931c979689;p=tig.git Tune the view clearing to wait until 2 seconds has passed The code introduced in ec9aa4f62ae2977d598dda865e6a50b9fc799428 broke the smoothness of updates in some cases. --- diff --git a/tig.c b/tig.c index c20a9d4..b4e4b59 100644 --- a/tig.c +++ b/tig.c @@ -2769,7 +2769,7 @@ update_view(struct view *view) if (view->lines == 0) { time_t secs = time(NULL) - view->start_time; - if (secs > view->update_secs) { + if (secs > 1 && secs > view->update_secs) { if (view->update_secs == 0) redraw_view(view); update_view_title(view);