]> granicus.if.org Git - vim/commitdiff
patch 8.2.4620: two letter substitute commands don't work v8.2.4620
authorBram Moolenaar <Bram@vim.org>
Thu, 24 Mar 2022 15:24:45 +0000 (15:24 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 24 Mar 2022 15:24:45 +0000 (15:24 +0000)
Problem:    Two letter substitute commands don't work. (Yegappan Lakshmanan)
Solution:   Invert condition.

src/ex_docmd.c
src/version.c

index 7c2fe3deb743feab2b44b281a7fb2410f101be7d..65f4221f0d38eece20f5ff761bbf9c0e5ed8aeac 100644 (file)
@@ -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')
     {
index 693cebc06afaba761369fb87878ad789f2aa38f5..6405e3b855b012f8af777643a3083410e0700600 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4620,
 /**/
     4619,
 /**/