diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-07 19:32:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-07 19:32:52 +0200 |
commit | ee380ae376692529b6f1805185015cb4717c6940 (patch) | |
tree | 07f07e9ac42332c087a9066e25d36e0a1eb2792f /src/edit.c | |
parent | 91d2e783b41ca900bc603b3cb5e083c8a4a33170 (diff) |
patch 8.1.0246: build failure without the +eval featurev8.1.0246
Problem: Build failure without the +eval feature.
Solution: Add #ifdef
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index b5c129f991..8ee4643570 100644 --- 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 |