0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0246: build failure without the +eval feature

Problem:    Build failure without the +eval feature.
Solution:   Add #ifdef
This commit is contained in:
Bram Moolenaar
2018-08-07 19:32:52 +02:00
parent 91d2e783b4
commit ee380ae376
2 changed files with 6 additions and 0 deletions

View File

@@ -1722,9 +1722,11 @@ ins_redraw(
{ {
aco_save_T aco; aco_save_T aco;
#ifdef FEAT_EVAL
// Sync undo when the autocommand calls setline() or append(), so that // Sync undo when the autocommand calls setline() or append(), so that
// it can be undone separately. // it can be undone separately.
u_sync_once = 2; u_sync_once = 2;
#endif
// save and restore curwin and curbuf, in case the autocmd changes them // save and restore curwin and curbuf, in case the autocmd changes them
aucmd_prepbuf(&aco, curbuf); aucmd_prepbuf(&aco, curbuf);
@@ -1732,9 +1734,11 @@ ins_redraw(
aucmd_restbuf(&aco); aucmd_restbuf(&aco);
curbuf->b_last_changedtick = CHANGEDTICK(curbuf); curbuf->b_last_changedtick = CHANGEDTICK(curbuf);
#ifdef FEAT_EVAL
if (u_sync_once == 1) if (u_sync_once == 1)
ins_need_undo = TRUE; ins_need_undo = TRUE;
u_sync_once = 0; u_sync_once = 0;
#endif
} }
#ifdef FEAT_INS_EXPAND #ifdef FEAT_INS_EXPAND

View File

@@ -794,6 +794,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
246,
/**/ /**/
245, 245,
/**/ /**/