]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0744: popup_atcursor() closes immediately on white space v9.2.0744
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Sun, 28 Jun 2026 18:43:03 +0000 (18:43 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 28 Jun 2026 18:43:03 +0000 (18:43 +0000)
commit2c363111ecc03915372ca1ff1e2ccc1656532499
treeabfb48ad8d86a426c245a4e4f38547cf2ac66b4d
parent6eb5d1a9dc81e291a893ad0ff247a1afc665ab3c
patch 9.2.0744: popup_atcursor() closes immediately on white space

Problem:  popup_atcursor() closes immediately on white space (Mao-Yining)
Solution: Set w_popup_mincol and w_popup_maxcol to the cursor column
          (Yasuhiro Matsumoto)

When the cursor is on white space find_ident_under_cursor() skips forward
to the next word, so the moved 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
closes: #20659

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/popupwin.c
src/testdir/test_popupwin.vim
src/version.c