diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c index 029b64c76e..d94b32a38a 100644 --- a/src/main.c +++ b/src/main.c @@ -1098,7 +1098,7 @@ main_loop(cmdwin, noexmode) || # endif # ifdef FEAT_CONCEAL - curwin->w_p_conc > 0 + curwin->w_p_cole > 0 # endif ) && !equalpos(last_cursormoved, curwin->w_cursor)) @@ -1109,7 +1109,7 @@ main_loop(cmdwin, noexmode) FALSE, curbuf); # endif # ifdef FEAT_CONCEAL - if (curwin->w_p_conc > 0) + if (curwin->w_p_cole > 0) { conceal_old_cursor_line = last_cursormoved.lnum; conceal_new_cursor_line = curwin->w_cursor.lnum; @@ -1197,9 +1197,12 @@ main_loop(cmdwin, noexmode) # if defined(FEAT_CONCEAL) if (conceal_update_lines - && conceal_old_cursor_line != conceal_new_cursor_line) + && (conceal_old_cursor_line != conceal_new_cursor_line + || conceal_cursor_line(curwin) + || need_cursor_line_redraw)) { - update_single_line(curwin, conceal_old_cursor_line); + if (conceal_old_cursor_line != conceal_new_cursor_line) + update_single_line(curwin, conceal_old_cursor_line); update_single_line(curwin, conceal_new_cursor_line); curwin->w_valid &= ~VALID_CROW; } |