diff src/normal.c @ 6834:8730db0c187b v7.4.738

patch 7.4.738 Problem: Can't compile without the syntax highlighting feature. Solution: Add #ifdef around use of w_p_cul. (Hirohito Higashi)
author Bram Moolenaar <bram@vim.org>
date Wed, 10 Jun 2015 12:16:47 +0200
parents bf3e6012dfbd
children 8ebcd7f1ff5b
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -8487,9 +8487,11 @@ n_opencmd(cap)
 	    /* When '#' is in 'cpoptions' ignore the count. */
 	    if (vim_strchr(p_cpo, CPO_HASH) != NULL)
 		cap->count1 = 1;
+#ifdef FEAT_SYN_HL
 	    if (curwin->w_p_cul)
 		/* force redraw of cursorline */
 		curwin->w_valid &= ~VALID_CROW;
+#endif
 	    invoke_edit(cap, FALSE, cap->cmdchar, TRUE);
 	}
     }