simon-git: putty (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sat Jan 8 14:09:25 GMT 2022


TL;DR:
  520915c6 Windows: make 'resize by changing font' work again.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2022-01-08 14:09:25

commit 520915c641ae14bbcdb25a257d854b24e9be700e
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=520915c641ae14bbcdb25a257d854b24e9be700e;hp=5ad601ffcd5d09b5f22d998f71ce9ccdf35140f1
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Jan 8 13:48:41 2022 +0000

    Windows: make 'resize by changing font' work again.
    
    It looks as if I broke this some time around commit cfc902361633915,
    when I stopped proactively calling term_size() in advance of resizing
    the window. A side effect was that I also stopped calling it at all in
    the case where we're _not_ resizing the window (because changing the
    size of the terminal means adapting the font size to fit a different
    amount of stuff in the existing window).
    
    Fixed by moving all the new machinery inside the 'actually resize the
    window' branch of the if statement, and restoring the previous
    behaviour in the other branch, this time with a comment that will
    hopefully stop me making the same mistake again.

 windows/window.c | 39 +++++++++++++++++++++++----------------
 1 file changed, 23 insertions(+), 16 deletions(-)



More information about the tartarus-commits mailing list