1
0
forked from aniani/vim

patch 8.2.0809: build failure with small features

Problem:    Build failure with small features. (Tony Mechelynck)
Solution:   Move "expr" inside #ifdef.
This commit is contained in:
Bram Moolenaar
2020-05-22 13:38:18 +02:00
parent 98f1671cc0
commit 5a80f8ad5d
2 changed files with 8 additions and 7 deletions

View File

@@ -211,13 +211,13 @@ map_add(
char_u *keys, char_u *keys,
char_u *rhs, char_u *rhs,
char_u *orig_rhs, char_u *orig_rhs,
int expr,
int noremap, int noremap,
int nowait, int nowait,
int silent, int silent,
int mode, int mode,
int is_abbr, int is_abbr,
#ifdef FEAT_EVAL #ifdef FEAT_EVAL
int expr,
scid_T sid, // -1 to use current_sctx scid_T sid, // -1 to use current_sctx
linenr_T lnum, linenr_T lnum,
#endif #endif
@@ -839,11 +839,10 @@ do_map(
continue; // have added the new entry already continue; // have added the new entry already
// Get here when adding a new entry to the maphash[] list or abbrlist. // Get here when adding a new entry to the maphash[] list or abbrlist.
if (map_add(map_table, abbr_table, keys, rhs, orig_rhs, expr, if (map_add(map_table, abbr_table, keys, rhs, orig_rhs,
noremap, nowait, silent, mode, noremap, nowait, silent, mode, abbrev,
abbrev,
#ifdef FEAT_EVAL #ifdef FEAT_EVAL
/* sid */ -1, /* lnum */ 0, expr, /* sid */ -1, /* lnum */ 0,
#endif #endif
did_simplify && keyround == 1) == FAIL) did_simplify && keyround == 1) == FAIL)
{ {
@@ -2331,8 +2330,8 @@ f_mapset(typval_T *argvars, typval_T *rettv UNUSED)
keys = replace_termcodes(lhs, &keys_buf, keys = replace_termcodes(lhs, &keys_buf,
REPTERM_FROM_PART | REPTERM_DO_LT, NULL); REPTERM_FROM_PART | REPTERM_DO_LT, NULL);
(void)map_add(map_table, abbr_table, keys, rhs, rhs, expr, (void)map_add(map_table, abbr_table, keys, rhs, rhs, noremap,
noremap, nowait, silent, mode, is_abbr, sid, lnum, simplified); nowait, silent, mode, is_abbr, expr, sid, lnum, simplified);
vim_free(keys_buf); vim_free(keys_buf);
} }
#endif #endif

View File

@@ -746,6 +746,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 */
/**/
809,
/**/ /**/
808, 808,
/**/ /**/