• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Révisiond9f9cdb2337e6333925428967b4d6f6e380f396a (tree)
l'heure2021-10-15 01:00:06
AuteurBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Message de Log

patch 8.2.3508: Vim9: bad separators for "g" and "s" insufficiently tested

Commit: https://github.com/vim/vim/commit/051a8a375f8fb6a931fbc5ccca714a200d9b327f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 14 16:53:42 2021 +0100

patch 8.2.3508: Vim9: bad separators for "g" and "s" insufficiently tested
Problem: Vim9: bad separators for "g" and "s" insufficiently tested.
Solution: Add a few more test cases.

Change Summary

Modification

diff -r 39be91f9606b -r d9f9cdb2337e src/testdir/test_vim9_cmd.vim
--- a/src/testdir/test_vim9_cmd.vim Thu Oct 14 17:30:05 2021 +0200
+++ b/src/testdir/test_vim9_cmd.vim Thu Oct 14 18:00:06 2021 +0200
@@ -1499,6 +1499,10 @@
14991499 g-pat-cmd
15001500 END
15011501 CheckDefAndScriptFailure(lines, 'E1241:', 1)
1502+ lines =<< trim END
1503+ g.pat.cmd
1504+ END
1505+ CheckDefAndScriptFailure2(lines, 'E1001: Variable not found: g', 'E121: Undefined variable: g', 1)
15021506
15031507 lines =<< trim END
15041508 s:notexist:repl
@@ -1509,6 +1513,10 @@
15091513 s-pat-repl
15101514 END
15111515 CheckDefAndScriptFailure(lines, 'E1241:', 1)
1516+ lines =<< trim END
1517+ s.pat.repl
1518+ END
1519+ CheckDefAndScriptFailure2(lines, 'E1001: Variable not found: s', 'E121: Undefined variable: s', 1)
15121520
15131521 lines =<< trim END
15141522 w:notexist->len()
diff -r 39be91f9606b -r d9f9cdb2337e src/version.c
--- a/src/version.c Thu Oct 14 17:30:05 2021 +0200
+++ b/src/version.c Thu Oct 14 18:00:06 2021 +0200
@@ -758,6 +758,8 @@
758758 static int included_patches[] =
759759 { /* Add new patch number below this line */
760760 /**/
761+ 3508,
762+/**/
761763 3507,
762764 /**/
763765 3506,
Afficher sur ancien navigateur de dépôt.