]> granicus.if.org Git - vim/commitdiff
patch 8.2.2140: build failure with tiny features v8.2.2140
authorBram Moolenaar <Bram@vim.org>
Sun, 13 Dec 2020 18:22:27 +0000 (19:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 13 Dec 2020 18:22:27 +0000 (19:22 +0100)
Problem:    Build failure with tiny features.
Solution:   Add #ifdef.

src/ex_docmd.c
src/version.c

index b7beabd2dd0f040c1dee70d1ce45616ed658af59..b08482232bf1cbcf98bbb31e19090c6d9fd78fc1 100644 (file)
@@ -3528,6 +3528,7 @@ find_ex_command(
     if (eap->cmdidx == CMD_final && p - eap->cmd == 4)
        eap->cmdidx = CMD_finally;
 
+#ifdef FEAT_EVAL
     if (eap->cmdidx != CMD_SIZE && in_vim9script()
            && !IS_WHITE_OR_NUL(*p) && !ends_excmd(*p) && *p != '!'
            && (cmdnames[eap->cmdidx].cmd_argt & EX_NONWHITE_OK) == 0)
@@ -3535,6 +3536,7 @@ find_ex_command(
        semsg(_(e_command_not_followed_by_white_space_str), eap->cmd);
        eap->cmdidx = CMD_SIZE;
     }
+#endif
 
     return p;
 }
index f6c51e1f0afd08f5f954d8907a4ac055cf322c1e..cf9fbc3d5200e28984a30c567c0e87f872a7a8c0 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2140,
 /**/
     2139,
 /**/