forked from aniani/vim
patch 8.2.2573: Vim9: using inalid pointer for error message
Problem: Vim9: using inalid pointer for error message. Solution: Use the right pointer. (closes #7921)
This commit is contained in:
@@ -3130,7 +3130,7 @@ eval6(
|
|||||||
*/
|
*/
|
||||||
if (evaluate && in_vim9script() && !IS_WHITE_OR_NUL((*arg)[1]))
|
if (evaluate && in_vim9script() && !IS_WHITE_OR_NUL((*arg)[1]))
|
||||||
{
|
{
|
||||||
error_white_both(p, 1);
|
error_white_both(*arg, 1);
|
||||||
clear_tv(rettv);
|
clear_tv(rettv);
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
|
@@ -1254,6 +1254,17 @@ def Test_expr5_vim9script()
|
|||||||
echo 'a' .. function('len')
|
echo 'a' .. function('len')
|
||||||
END
|
END
|
||||||
CheckScriptFailure(lines, 'E729:', 2)
|
CheckScriptFailure(lines, 'E729:', 2)
|
||||||
|
|
||||||
|
lines =<< trim END
|
||||||
|
vim9script
|
||||||
|
new
|
||||||
|
['']->setline(1)
|
||||||
|
/pattern
|
||||||
|
|
||||||
|
eval 0
|
||||||
|
bwipe!
|
||||||
|
END
|
||||||
|
CheckScriptFailure(lines, "E1004: White space required before and after '/' at \"/pattern")
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_expr5_vim9script_channel()
|
def Test_expr5_vim9script_channel()
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2573,
|
||||||
/**/
|
/**/
|
||||||
2572,
|
2572,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user