projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update the configuration when the window is resized.
[u/mdw/putty]
/
mac
/
macterm.c
diff --git
a/mac/macterm.c
b/mac/macterm.c
index
a80b113
..
28898e6
100644
(file)
--- a/
mac/macterm.c
+++ b/
mac/macterm.c
@@
-985,6
+985,8
@@
static void mac_growterm(WindowPtr window, EventRecord *event)
newcols = (LoWord(grow_result) - 15) / s->font_width;
mac_adjustsize(s, newrows, newcols);
term_size(s->term, newrows, newcols, s->cfg.savelines);
+ s->cfg.height=s->term->rows;
+ s->cfg.width=s->term->cols;
}
}