summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c811600)
raw | patch | inline | side by side (parent: c811600)
author | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 4 Apr 2008 20:17:24 +0000 (22:17 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 4 Apr 2008 20:17:24 +0000 (22:17 +0200) |
tig.c | patch | blob | history |
index 4dd8245eba0265786ca3b3e5d50d0183de5f2a6b..391d56fe9861bae64b43e21cf570ba8960ffc9f5 100644 (file)
--- a/tig.c
+++ b/tig.c
char newpath[SIZEOF_STR] = "";
char *info;
size_t cmdsize = 0;
+ enum open_flags split;
if (line->type == LINE_STAT_NONE ||
(!status && line[1].type == LINE_STAT_NONE)) {
die("line type %d not handled in switch", line->type);
}
- open_view(view, REQ_VIEW_STAGE, OPEN_RELOAD | OPEN_SPLIT);
+ split = view_is_displayed(view) ? OPEN_SPLIT : 0;
+ open_view(view, REQ_VIEW_STAGE, OPEN_RELOAD | split);
if (view_is_displayed(VIEW(REQ_VIEW_STAGE))) {
if (status) {
stage_status = *status;