diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-24 15:24:45 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-24 15:24:45 +0000 |
commit | 1e2c4175dce903986dac66ba9326ae562b159421 (patch) | |
tree | 268939abb7ae1d7a3228846ac9f67e1db6dc387e | |
parent | f8e43f6107f3a83b8c74a84c4c8f99598e2dc4c0 (diff) | |
download | vim-git-1e2c4175dce903986dac66ba9326ae562b159421.tar.gz |
patch 8.2.4620: two letter substitute commands don't workv8.2.4620
Problem: Two letter substitute commands don't work. (Yegappan Lakshmanan)
Solution: Invert condition.
-rw-r--r-- | src/ex_docmd.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 7c2fe3deb..65f4221f0 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3431,7 +3431,7 @@ skip_option_env_lead(char_u *start) static int one_letter_cmd(char_u *p, cmdidx_T *idx) { - if (!in_vim9script()) + if (in_vim9script()) return FALSE; if (*p == 'k') { diff --git a/src/version.c b/src/version.c index 693cebc06..6405e3b85 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4620, +/**/ 4619, /**/ 4618, |