]> granicus.if.org Git - vim/commitdiff
patch 8.2.0344: ":def" not skipped properly v8.2.0344
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Mar 2020 18:41:43 +0000 (19:41 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Mar 2020 18:41:43 +0000 (19:41 +0100)
Problem:    ":def" not skipped properly.
Solution:   Add CMD_def to list of commands the require evaluation even when
            not being executed.

src/ex_docmd.c
src/version.c

index 62cab6e22f85812eb2c2189f9144324ccfc0fb2d..f2fb646980b429494d768338495ff912602fed5e 100644 (file)
@@ -2357,6 +2357,7 @@ do_one_cmd(
            case CMD_finally:
            case CMD_endtry:
            case CMD_function:
+           case CMD_def:
                                break;
 
            // Commands that handle '|' themselves.  Check: A command should
index 56a0aeeef79d3c6a9c344623ba4923ea960cde85..40c3c75c72c870d51ca5b45d4c13ef141f08773b 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    344,
 /**/
     343,
 /**/