~mdw
/
tig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only resize the display when actually required
[tig]
/
tig.c
diff --git
a/tig.c
b/tig.c
index
4abb0bf
..
4ab9434
100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-1285,7
+1285,8
@@
open_view(struct view *prev, enum request request, enum open_flags flags)
display[current_view] = view;
}
display[current_view] = view;
}
- resize_display();
+ if (nviews == 1 || display[1] == NULL)
+ resize_display();
if (split && prev->lineno - prev->offset >= prev->height) {
/* Take the title line into account. */
if (split && prev->lineno - prev->offset >= prev->height) {
/* Take the title line into account. */