From eb4bb8906cf89c541dd754879e5742931c979689 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sat, 31 Jan 2009 10:06:30 +0100 Subject: [PATCH] Tune the view clearing to wait until 2 seconds has passed The code introduced in ec9aa4f62ae2977d598dda865e6a50b9fc799428 broke the smoothness of updates in some cases. --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2