[vim/vim] Always resize when in hit enter prompt (PR #20852)

12 views
Skip to first unread message

Foxe Chen

unread,
Jul 26, 2026, 9:47:07 PMJul 26
to vim/vim, Subscribed

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).


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20852

Commit Summary

  • 7b91e59 alwasys resize when in hit enter prompt

File Changes

(1 file)

Patch Links:

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20852@github.com>

Christian Brabandt

unread,
Jul 27, 2026, 3:11:28 PMJul 27
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20852)

Hm, but that will always clear the hit enter prompt. when resizing while in a hit enter prompt

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20852/c5095649240@github.com>

Foxe Chen

unread,
Jul 27, 2026, 3:16:21 PMJul 27
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#20852)

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

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20852/c5095696587@github.com>

Christian Brabandt

unread,
Jul 28, 2026, 4:24:49 PMJul 28
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20852)

Hm, it is not quite correct. With your change MODE_SETWSIZE will become unused and I think we need to make a few more changes. Full patch would look like this, I think: https://gist.github.com/chrisbra/9edc20774d3ab63789b30f75c41523a7

This does properly redraw the hit-enter prompt on resize.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20852/c5109284137@github.com>

Foxe Chen

unread,
Jul 28, 2026, 6:05:05 PMJul 28
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#20852)

Hm, it is not quite correct. With your change MODE_SETWSIZE will become unused and I think we need to make a few more changes. Full patch would look like this, I think: https://gist.github.com/chrisbra/9edc20774d3ab63789b30f75c41523a7

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.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20852/c5110161148@github.com>

Christian Brabandt

unread,
Jul 30, 2026, 2:41:03 PMJul 30
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20852)

The patch doesn't redraw the screen properly when the window size goes from smaller to bigger.

In a terminal you mean? I think that is the best we can do. In the gui it seemed to work for me.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20852/c5134870172@github.com>

Foxe Chen

unread,
Jul 30, 2026, 3:13:38 PMJul 30
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#20852)

The patch doesn't redraw the screen properly when the window size goes from smaller to bigger.

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?

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20852/c5135192220@github.com>

Christian Brabandt

unread,
Sep 30, 2026, 6:02:35 PM (yesterday) Sep 30
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20852)

let's drop this for now.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20852/c5920487415@github.com>

Reply all
Reply to author
Forward
0 new messages