diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-11 20:33:48 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-11 20:33:48 +0000 |
commit | 5b1d6e98c6610553fe3946086cdba77718bd69d5 (patch) | |
tree | eaf6cc403e6f80de9a36b892c260c967d26e419b /runtime | |
parent | bd89d4406327d3a30517443a4a518f49ebc99368 (diff) |
patch 8.2.4348: "legacy exe cmd" does not do what one would expectv8.2.4348
Problem: "legacy exe cmd" does not do what one would expect.
Solution: Apply the "legacy" and "vim9script" command modifiers to the
argument of ":execute".
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/vim9.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index 5824ecb281..edd61d9689 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -57,13 +57,13 @@ rewrite old scripts, they keep working as before. You may want to use a few `:def` functions for code that needs to be fast. :vim9[cmd] {cmd} *:vim9* *:vim9cmd* *E1164* - Execute {cmd} using Vim9 script syntax and semantics. - Useful when typing a command and in a legacy script or - function. + Evaluate and execute {cmd} using Vim9 script syntax and + semantics. Useful when typing a command and in a legacy + script or function. :leg[acy] {cmd} *:leg* *:legacy* *E1189* *E1234* - Execute {cmd} using legacy script syntax and semantics. Only - useful in a Vim9 script or a :def function. + Evaluate and execute {cmd} using legacy script syntax and + semantics. Only useful in a Vim9 script or a :def function. Note that {cmd} cannot use local variables, since it is parsed with legacy expression syntax. |