Patch 8.2.1361

7 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 4, 2020, 9:53:37 AM8/4/20
to vim...@googlegroups.com

Patch 8.2.1361
Problem: Error for white space after expression in assignment.
Solution: Skip over white space. (closes #6617)
Files: src/eval.c, src/testdir/test_expr.vim


*** ../vim-8.2.1360/src/eval.c 2020-08-03 22:39:05.902971252 +0200
--- src/eval.c 2020-08-04 15:48:25.930152983 +0200
***************
*** 903,908 ****
--- 903,909 ----
clear_tv(&var1);
return NULL;
}
+ p = skipwhite(p);
}

// Optionally get the second index [ :expr].
*** ../vim-8.2.1360/src/testdir/test_expr.vim 2020-07-11 22:14:54.314422214 +0200
--- src/testdir/test_expr.vim 2020-08-04 15:51:49.165640233 +0200
***************
*** 55,60 ****
--- 55,63 ----
let d['a'] = 'aaa'
call assert_equal('none', d[''])
call assert_equal('aaa', d['a'])
+
+ let d[ 'b' ] = 'bbb'
+ call assert_equal('bbb', d[ 'b' ])
endfunc

func Test_strgetchar()
*** ../vim-8.2.1360/src/version.c 2020-08-03 22:39:05.902971252 +0200
--- src/version.c 2020-08-04 15:49:22.094017722 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1361,
/**/

--
hundred-and-one symptoms of being an internet addict:
118. You are on a first-name basis with your ISP's staff.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages