mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Mid-session reconfiguration of scrollback was failing (in Unix)
except when width or height had _also_ been changed. Fixed. [originally from svn r3108]
This commit is contained in:
parent
56a4e967da
commit
a9b6ceb700
11
unix/pterm.c
11
unix/pterm.c
@ -2519,6 +2519,17 @@ void change_settings_menuitem(GtkMenuItem *item, gpointer data)
|
||||
oldcfg.window_border != cfg2.window_border || need_size) {
|
||||
set_geom_hints(inst);
|
||||
request_resize(inst, cfg2.width, cfg2.height);
|
||||
} else {
|
||||
/*
|
||||
* The above will have caused a call to term_size() for
|
||||
* us if it happened. If the user has fiddled with only
|
||||
* the scrollback size, the above will not have
|
||||
* happened and we will need an explicit term_size()
|
||||
* here.
|
||||
*/
|
||||
if (oldcfg.savelines != cfg2.savelines)
|
||||
term_size(inst->term, inst->term->rows, inst->term->cols,
|
||||
cfg2.savelines);
|
||||
}
|
||||
|
||||
term_invalidate(inst->term);
|
||||
|
Loading…
Reference in New Issue
Block a user