Always resize when in hit enter prompt - #20852
Conversation
7b91e59 to
7ca0f40
Compare
|
Hm, but that will always clear the hit enter prompt. when resizing while in a hit enter prompt |
Yes but without clearing the screen, the screen will be messed up on resize meaning you have to clear the screen manually anyways. Maybe it would be better to keep the hit enter prompt when resizing, but this seems like an edge case so im not sure if its worth it |
|
Hm, it is not quite correct. With your change This does properly redraw the hit-enter prompt on resize. |
The patch doesn't redraw the screen properly when the window size goes from smaller to bigger. I think clearing the screen (and the hit enter prompt) would be the simplest. |
In a terminal you mean? I think that is the best we can do. In the gui it seemed to work for me. |
I was using the GTK4 GUI, maybe its possibly because of differences in the running Wayland compositor/wm? |
If in a hit enter prompt and the shell size changes, it is supposedly postponed with MODE_SETWSIZE. However that does nothing because its called under the do while loop
wait_return(), so the loop does not stop, resulting in Vim screen contents being messed up until some input is received (which causes the loop to stop).