chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f0b3ab8
)
Only resize the display when actually required
author
Jonas Fonseca
<fonseca@diku.dk>
Sun, 21 May 2006 23:26:22 +0000
(
01:26
+0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Sun, 21 May 2006 23:26:22 +0000
(
01:26
+0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index 4abb0bf2e3cd618bf4f1fb40ad9ae82d56930bb6..4ab9434d7413f3c2c911cd19eda6ba2df38cc44f 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;
}
- resize_display();
+ if (nviews == 1 || display[1] == NULL)
+ resize_display();
if (split && prev->lineno - prev->offset >= prev->height) {
/* Take the title line into account. */