summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5c18d9)
raw | patch | inline | side by side (parent: b5c18d9)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 29 Sep 2007 01:43:23 +0000 (03:43 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 29 Sep 2007 01:43:50 +0000 (03:43 +0200) |
tig.c | patch | blob | history |
index 1cffb040f7aff7826e0ba6140e2fecab2ce84445..ce21fbac90d78ebb76c8a1284fd8de69f39d6d4c 100644 (file)
--- a/tig.c
+++ b/tig.c
} else if (!status_update_file(view, line->data, line->type)) {
report("Failed to update file status");
}
-
- open_view(view, REQ_VIEW_STATUS, OPEN_RELOAD);
}
static enum request
case REQ_STATUS_MERGE:
open_mergetool(status->name);
- open_view(view, REQ_VIEW_STATUS, OPEN_RELOAD);
break;
case REQ_EDIT:
return request;
open_editor(status->status != '?', status->name);
- open_view(view, REQ_VIEW_STATUS, OPEN_RELOAD);
break;
case REQ_ENTER:
+ /* After returning the status view has been split to
+ * show the stage view. No further reloading is
+ * necessary. */
status_enter(view, line);
- break;
+ return REQ_NONE;
case REQ_REFRESH:
- open_view(view, REQ_VIEW_STATUS, OPEN_RELOAD);
+ /* Simply reload the view. */
break;
default:
return request;
}
+ open_view(view, REQ_VIEW_STATUS, OPEN_RELOAD);
+
return REQ_NONE;
}