Code

Reload the status and stage views after a run request has been handled
authorJonas Fonseca <fonseca@diku.dk>
Thu, 3 Apr 2008 14:46:00 +0000 (16:46 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 3 Apr 2008 17:33:30 +0000 (19:33 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 8fec47dbb31dc47684d970fd5080236d2756ac88..0ceeb80612b9631262442635fe9d4ede08d070ed 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2508,7 +2508,12 @@ view_driver(struct view *view, enum request request)
 
        if (request > REQ_NONE) {
                open_run_request(request);
-               return TRUE;
+               /* FIXME: When all views can refresh always do this. */
+               if (view == VIEW(REQ_VIEW_STATUS) ||
+                   view == VIEW(REQ_VIEW_STAGE))
+                       request = REQ_REFRESH;
+               else
+                       return TRUE;
        }
 
        if (view && view->lines) {