[vim/vim] redraw: cursor is left in the wrong place with an operator pending (PR #21199)

5 views
Skip to first unread message

h_east

unread,
Aug 31, 2026, 10:17:49 AM (10 days ago) Aug 31
to vim/vim, Subscribed
Problem:  With an operator pending, a :redraw from an autocommand or a
          callback leaves the cursor where the drawing ended, so it is
          seen in the wrong place until the operator is finished.  A
          popup closed from such an autocommand shows this.
Solution: Put the cursor back after the screen is updated.  This has to
          happen before RedrawingDisabled is restored, which an
          autocommand may have set, since setcursor() does nothing then.

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

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

Commit Summary

  • dfff59d redraw: cursor is left in the wrong place with an operator pending

File Changes

(2 files)

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/21199@github.com>

Christian Brabandt

unread,
Sep 1, 2026, 3:19:09 PM (9 days ago) Sep 1
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#21199)

thanks


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/21199/c5499134169@github.com>

Reply all
Reply to author
Forward
0 new messages