chiark / gitweb /
Fix resizing the window smaller.
authorSimon Tatham <anakin@pobox.com>
Sat, 9 Dec 2023 12:22:23 +0000 (12:22 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 9 Dec 2023 12:22:23 +0000 (12:22 +0000)
commit43907026ca85c234f9cc4acc8824c64fb1fc78ea
tree936ece6e348a2a05106f992054eaf454244eb321
parent9819209e530fb943e7ba9a3d46ed25a01880de17
Fix resizing the window smaller.

Some weird sequence of events was triggering an attempted redraw at
the old size, before properly noticing the change and redrawing at the
new size. When going from smaller to bigger this just caused a display
flicker (in fact not even a perceptible one), but bigger to smaller
caused an exception when we tried to draw a big screen in a small
window and curses caught us printing outside the screen area.

Now seems to work better.
cursesclient.py