summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index b693800160..9e23606ccb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1170,6 +1170,10 @@ main_loop(
// locked, this would be a good time to handle the drop.
handle_any_postponed_drop();
#endif
+#ifdef FEAT_CONCEAL
+ if (curwin->w_p_cole == 0)
+ conceal_update_lines = FALSE;
+#endif
/* Trigger CursorMoved if the cursor moved. */
if (!finish_op && (
@@ -1201,6 +1205,7 @@ main_loop(
|| need_cursor_line_redraw))
{
if (conceal_old_cursor_line != conceal_new_cursor_line
+ && conceal_old_cursor_line != 0
&& conceal_old_cursor_line
<= curbuf->b_ml.ml_line_count)
redrawWinline(curwin, conceal_old_cursor_line);