diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-29 20:22:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-29 20:22:32 +0200 |
commit | ea042677ab5cab736540f3164909cac2c685de74 (patch) | |
tree | 623524f72d11b847df5de0043c42e466290e2e8b /src/normal.c | |
parent | 4067bd3604215b48e4b4201e28f9e401b08418e4 (diff) | |
download | vim-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/normal.c')
-rw-r--r-- | src/normal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/normal.c b/src/normal.c index 18f14ec4e..56f89f518 100644 --- a/src/normal.c +++ b/src/normal.c @@ -5747,8 +5747,8 @@ may_start_select(int c) n_start_visual_mode(int c) { #ifdef FEAT_CONCEAL - // Check for redraw before changing the state. - conceal_check_cursor_line(); + int cursor_line_was_concealed = curwin->w_p_cole > 0 + && conceal_cursor_line(curwin); #endif VIsual_mode = c; @@ -5770,8 +5770,8 @@ n_start_visual_mode(int c) setmouse(); #ifdef FEAT_CONCEAL - // Check for redraw after changing the state. - conceal_check_cursor_line(); + // Check if redraw is needed after changing the state. + conceal_check_cursor_line(cursor_line_was_concealed); #endif if (p_smd && msg_silent == 0) |