summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83f54aa)
raw | patch | inline | side by side (parent: 83f54aa)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 7 Oct 2008 10:23:48 +0000 (12:23 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 7 Oct 2008 10:23:48 +0000 (12:23 +0200) |
... so the main view keeps its dimension when refreshing with the diff
view open.
view open.
tig.c | patch | blob | history |
index 6e32e227c5fb68110959da277be785cd778d4ee0..b896b92f1f48ec6808a48473552c5a54e3898c06 100644 (file)
--- a/tig.c
+++ b/tig.c
bool backgrounded = !!(flags & OPEN_BACKGROUNDED);
bool split = !!(flags & OPEN_SPLIT);
bool reload = !!(flags & (OPEN_RELOAD | OPEN_REFRESH));
- bool nomaximize = !!(flags & OPEN_NOMAXIMIZE);
+ bool nomaximize = !!(flags & (OPEN_NOMAXIMIZE | OPEN_REFRESH));
struct view *view = VIEW(request);
int nviews = displayed_views();
struct view *base_view = display[0];
if (stage_line_type == LINE_STAT_UNTRACKED)
opt_pipe = fopen(stage_status.new.name, "r");
- open_view(view, REQ_VIEW_STAGE, OPEN_REFRESH | OPEN_NOMAXIMIZE);
+ open_view(view, REQ_VIEW_STAGE, OPEN_REFRESH);
return REQ_NONE;
}