]> granicus.if.org Git - vim/commitdiff
patch 7.4.738 v7.4.738
authorBram Moolenaar <Bram@vim.org>
Wed, 10 Jun 2015 10:16:47 +0000 (12:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 10 Jun 2015 10:16:47 +0000 (12:16 +0200)
Problem:    Can't compile without the syntax highlighting feature.
Solution:   Add #ifdef around use of w_p_cul. (Hirohito Higashi)

src/normal.c
src/screen.c
src/version.c

index 38a9f81b4ec24f845e80e3d82ab86ecdd3da145a..dc223c2ae417f0f9a6159bd4ba9c007112d7391d 100644 (file)
@@ -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);
        }
     }
index 917a0eaa923a9dca18407b1c5e3235961954a87a..379b0f43346d0137ec2c1fbd48b73389daa56e16 100644 (file)
@@ -3750,24 +3750,24 @@ win_line(wp, lnum, startrow, endrow, nochange)
            if (draw_state == WL_BRI - 1 && n_extra == 0)
            {
                draw_state = WL_BRI;
-# ifdef FEAT_DIFF
-# endif
                if (wp->w_p_bri && n_extra == 0 && row != startrow
-#ifdef FEAT_DIFF
+# ifdef FEAT_DIFF
                        && filler_lines == 0
-#endif
+# endif
                   )
                {
                    char_attr = 0; /* was: hl_attr(HLF_AT); */
-#ifdef FEAT_DIFF
+# ifdef FEAT_DIFF
                    if (diff_hlf != (hlf_T)0)
                    {
                        char_attr = hl_attr(diff_hlf);
+#  ifdef FEAT_SYN_HL
                        if (wp->w_p_cul && lnum == wp->w_cursor.lnum)
                            char_attr = hl_combine_attr(char_attr,
                                                            hl_attr(HLF_CUL));
+#  endif
                    }
-#endif
+# endif
                    p_extra = NULL;
                    c_extra = ' ';
                    n_extra = get_breakindent_win(wp,
index acff49046411a9b5865d7e2ab1d73787053e42f2..23a1b1367d4520a2c6a31ad68aaa609fca4d126c 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    738,
 /**/
     737,
 /**/