projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Separate out the code for creating and sending SSH version strings so that in
[u/mdw/putty]
/
terminal.c
diff --git
a/terminal.c
b/terminal.c
index
92c3f03
..
f58941f
100644
(file)
--- a/
terminal.c
+++ b/
terminal.c
@@
-1722,7
+1722,7
@@
void term_provide_resize_fn(Terminal *term,
{
term->resize_fn = resize_fn;
term->resize_ctx = resize_ctx;
{
term->resize_fn = resize_fn;
term->resize_ctx = resize_ctx;
- if (term->cols > 0 && term->rows > 0)
+ if (
resize_fn &&
term->cols > 0 && term->rows > 0)
resize_fn(resize_ctx, term->cols, term->rows);
}
resize_fn(resize_ctx, term->cols, term->rows);
}