commit | 4d4d1cd5c8b61ef0296bd6190ca2a0b2d6d96ba7 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jul 30 22:14:33 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jul 30 22:14:33 2020 +0200 |
tree | 0d7e06a252e1f6ba2b97c86b163b5fc8954b117b | |
parent | f4ee528086dcff2b8744544c440853f177956261 [diff] [blame] |
patch 8.2.1328: no space allowed before comma in list Problem: No space allowed before comma in list. Solution: Legacy Vim script allows it. (closes #6577)
diff --git a/src/list.c b/src/list.c index 5c2f60e..14a31bc 100644 --- a/src/list.c +++ b/src/list.c
@@ -1194,6 +1194,9 @@ else clear_tv(&tv); } + // Legacy Vim script allowed a space before the comma. + if (!vim9script) + *arg = skipwhite(*arg); // the comma must come after the value had_comma = **arg == ',';