From: Jonas Fonseca Date: Mon, 12 Apr 2010 02:47:14 +0000 (-0400) Subject: Use foreach_view for the stop loading action X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a0ab665dc528e4314da21b5cb3a2c2ba953b6c89;p=tig.git Use foreach_view for the stop loading action --- diff --git a/tig.c b/tig.c index 9b50261..fa0c806 100644 --- a/tig.c +++ b/tig.c @@ -3737,8 +3737,7 @@ view_driver(struct view *view, enum request request) break; case REQ_STOP_LOADING: - for (i = 0; i < ARRAY_SIZE(views); i++) { - view = &views[i]; + foreach_view(view, i) { if (view->pipe) report("Stopped loading the %s view", view->name), end_update(view, TRUE);