]> granicus.if.org Git - vim/commitdiff
patch 8.1.0246: build failure without the +eval feature v8.1.0246
authorBram Moolenaar <Bram@vim.org>
Tue, 7 Aug 2018 17:32:52 +0000 (19:32 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 7 Aug 2018 17:32:52 +0000 (19:32 +0200)
Problem:    Build failure without the +eval feature.
Solution:   Add #ifdef

src/edit.c
src/version.c

index b5c129f991b646f27adafec20e325dfd75071a38..8ee4643570bad4a8fdcb466af4d142a3010e4db7 100644 (file)
@@ -1722,9 +1722,11 @@ ins_redraw(
     {
        aco_save_T      aco;
 
+#ifdef FEAT_EVAL
        // Sync undo when the autocommand calls setline() or append(), so that
        // it can be undone separately.
        u_sync_once = 2;
+#endif
 
        // save and restore curwin and curbuf, in case the autocmd changes them
        aucmd_prepbuf(&aco, curbuf);
@@ -1732,9 +1734,11 @@ ins_redraw(
        aucmd_restbuf(&aco);
        curbuf->b_last_changedtick = CHANGEDTICK(curbuf);
 
+#ifdef FEAT_EVAL
        if (u_sync_once == 1)
            ins_need_undo = TRUE;
        u_sync_once = 0;
+#endif
     }
 
 #ifdef FEAT_INS_EXPAND
index 3b437c45ace6f617d03091c213d1405c86867116..a3539f0c1e0c48cac97ff99edc6f60e01163778a 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    246,
 /**/
     245,
 /**/