Mercurial > vim
changeset 21562:55aa283a0e5e v8.2.1331
patch 8.2.1331: Vim9: :echo with two lists doesn't work
Commit: https://github.com/vim/vim/commit/badd8486f7442bfcf55e0234ece80488958e7114
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 31 22:38:17 2020 +0200
patch 8.2.1331: Vim9: :echo with two lists doesn't work
Problem: Vim9: :echo with two lists doesn't work.
Solution: Do not skip white space before []. (closes https://github.com/vim/vim/issues/6552)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 31 Jul 2020 22:45:04 +0200 |
parents | 67a2eea13464 |
children | 199fa374b852 |
files | src/testdir/test_vim9_expr.vim src/version.c src/vim9compile.c |
diffstat | 3 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -1176,6 +1176,10 @@ def Test_expr7_list() assert_equal(g:list_mixed, [1, 'b', false,]) assert_equal('b', g:list_mixed[1]) + echo [1, + 2] [3, + 4] + call CheckDefExecFailure(["let x = g:anint[3]"], 'E714:') call CheckDefFailure(["let x = g:list_mixed[xxx]"], 'E1001:') call CheckDefFailure(["let x = [1,2,3]"], 'E1069:') @@ -1193,6 +1197,10 @@ def Test_expr7_list_vim9script() 22, ] assert_equal([11, 22], l) + + echo [1, + 2] [3, + 4] END CheckScriptSuccess(lines)