# HG changeset patch # User Christian Brabandt # Date 1533663905 -7200 # Node ID 78d4375b6bb2c9b61caf065c3fee1813c9d36d1a # Parent b5bf6d9baa24f22894692ad28ade63e38ffbf22b patch 8.1.0246: build failure without the +eval feature commit https://github.com/vim/vim/commit/ee380ae376692529b6f1805185015cb4717c6940 Author: Bram Moolenaar Date: Tue Aug 7 19:32:52 2018 +0200 patch 8.1.0246: build failure without the +eval feature Problem: Build failure without the +eval feature. Solution: Add #ifdef diff --git a/src/edit.c b/src/edit.c --- a/src/edit.c +++ b/src/edit.c @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 246, +/**/ 245, /**/ 244,