Fix flickering of prompt during window resize

Works by keeping the old prompt unreflowed rather than clearing it.
There may still be some flicker for people using long or right side
prompts, but that cant be avoided, since we cannot know how the shell
will redraw after the resize. But in the common case of a left side
smallish prompt that fits in the resized window, the flicker is
eliminated.

It means we have to do some more copying work on resize, but the nicer
visuals is worth it, IMO.
This commit is contained in:
Kovid Goyal
2024-04-12 15:16:34 +05:30
parent a5b0db3219
commit 684d28d328
2 changed files with 38 additions and 10 deletions

View File

@@ -96,6 +96,8 @@ Detailed list of changes
- When asking for quit confirmation because of a running program, mention the program name (:iss:`7331`)
- Fix flickering of prompt during window resize (:iss:`7324`)
0.33.1 [2024-03-21]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~