Skip to content

Commit ee380ae

Browse files
committed
patch 8.1.0246: build failure without the +eval feature
Problem: Build failure without the +eval feature. Solution: Add #ifdef
1 parent 91d2e78 commit ee380ae

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/edit.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,19 +1722,23 @@ ins_redraw(
17221722
{
17231723
aco_save_T aco;
17241724

1725+
#ifdef FEAT_EVAL
17251726
// Sync undo when the autocommand calls setline() or append(), so that
17261727
// it can be undone separately.
17271728
u_sync_once = 2;
1729+
#endif
17281730

17291731
// save and restore curwin and curbuf, in case the autocmd changes them
17301732
aucmd_prepbuf(&aco, curbuf);
17311733
apply_autocmds(EVENT_TEXTCHANGEDI, NULL, NULL, FALSE, curbuf);
17321734
aucmd_restbuf(&aco);
17331735
curbuf->b_last_changedtick = CHANGEDTICK(curbuf);
17341736

1737+
#ifdef FEAT_EVAL
17351738
if (u_sync_once == 1)
17361739
ins_need_undo = TRUE;
17371740
u_sync_once = 0;
1741+
#endif
17381742
}
17391743

17401744
#ifdef FEAT_INS_EXPAND

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,8 @@ static char *(features[]) =
794794

795795
static int included_patches[] =
796796
{ /* Add new patch number below this line */
797+
/**/
798+
246,
797799
/**/
798800
245,
799801
/**/

0 commit comments

Comments
 (0)