0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.1891: Vim9: skipping over expression doesn't handle line breaks

Problem:    Vim9: skipping over expression doesn't handle line breaks.
Solution:   Pass evalarg to skip_expr(). (closes #7157)
This commit is contained in:
Bram Moolenaar
2020-10-22 21:22:58 +02:00
parent 081db1a66d
commit 683581eb49
7 changed files with 22 additions and 10 deletions

View File

@@ -368,12 +368,12 @@ eval_to_string_skip(
* Return FAIL for an error, OK otherwise.
*/
int
skip_expr(char_u **pp)
skip_expr(char_u **pp, evalarg_T *evalarg)
{
typval_T rettv;
*pp = skipwhite(*pp);
return eval1(pp, &rettv, NULL);
return eval1(pp, &rettv, evalarg);
}
/*