[vim/vim] patch: fix popup_atcursor() closing immediately when the cursor is on white space (PR #20659)

2 views
Skip to first unread message

mattn

unread,
8:41 AM (4 hours ago) 8:41 AM
to vim/vim, Subscribed

When the cursor is on white space, popup_atcursor() created a popup that was closed immediately, for example when popup_atcursor() is called from another popup's filter that also closes that popup.

The cause is that find_ident_under_cursor() skips forward to the next word when the cursor is on white space, so the stored "moved" column range did not cover the cursor column and popup_check_cursor_pos() closed the popup right away. Keep the cursor column in that case.

Fixes #20652


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

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

Commit Summary

  • 8638d24 fix popup_atcursor() closing immediately on white space

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

Reply all
Reply to author
Forward
0 new messages