summaryrefslogtreecommitdiff
path: root/src/testdir/test_popupwin.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-29 20:22:32 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-29 20:22:32 +0200
commitea042677ab5cab736540f3164909cac2c685de74 (patch)
tree623524f72d11b847df5de0043c42e466290e2e8b /src/testdir/test_popupwin.vim
parent4067bd3604215b48e4b4201e28f9e401b08418e4 (diff)
downloadvim-git-ea042677ab5cab736540f3164909cac2c685de74.tar.gz
patch 8.2.3074: popup_atcursor() uses wrong position with concealingv8.2.3074
Problem: popup_atcursor() uses wrong position with concealing. Solution: Keep w_wcol in conceal_check_cursor_line(). (closes #8476)
Diffstat (limited to 'src/testdir/test_popupwin.vim')
-rw-r--r--src/testdir/test_popupwin.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index 68d7db87e..cdfa3a987 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -1462,6 +1462,13 @@ func Test_popup_atcursor_pos()
\ moved: range(3),
\ mousemoved: range(3),
\ })
+
+ normal 9G27|Rconcealed X
+ syn match Hidden /concealed/ conceal
+ set conceallevel=2 concealcursor=n
+ redraw
+ normal 0fX
+ call popup_atcursor('mark', {})
END
call writefile(lines, 'XtestPopupAtcursorPos')
let buf = RunVimInTerminal('-S XtestPopupAtcursorPos', #{rows: 12})