1
0
forked from aniani/vim

patch 8.2.3074: popup_atcursor() uses wrong position with concealing

Problem:    popup_atcursor() uses wrong position with concealing.
Solution:   Keep w_wcol in conceal_check_cursor_line(). (closes #8476)
This commit is contained in:
Bram Moolenaar
2021-06-29 20:22:32 +02:00
parent 4067bd3604
commit ea042677ab
8 changed files with 43 additions and 15 deletions

View File

@@ -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)