Skip to content

Commit

Permalink
Fix the view clearing to only be effective for displayed views
Browse files Browse the repository at this point in the history
The feature was introduced in ec9aa4f.
  • Loading branch information
jonas committed Feb 13, 2009
1 parent ab798b4 commit a01f7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tig.c
Expand Up @@ -2859,7 +2859,7 @@ update_view(struct view *view)
return TRUE;

if (!io_can_read(view->pipe)) {
if (view->lines == 0) {
if (view->lines == 0 && view_is_displayed(view)) {
time_t secs = time(NULL) - view->start_time;

if (secs > 1 && secs > view->update_secs) {
Expand Down

0 comments on commit a01f7e6

Please sign in to comment.