Problem: Vim9: error for append(0, text).
Solution: Check for negative number. (closes #8022)
var res2: bool = append(3, 'two')
assert_equal(false, res2)
assert_equal(['0', 'one', '1', 'two', '2'], getline(1, 6))
+
+ append(0, 'zero')
+ assert_equal('zero', getline(1))
+ bwipe!
enddef
def Test_balloon_show()
if (argvars[0].v_type != VAR_STRING || !in_vim9script())
lnum = (linenr_T)tv_get_number_chk(&argvars[0], NULL);
- if (lnum <= 0) // no valid number, try using arg like line()
+ if (lnum < 0) // no valid number, try using arg like line()
{
int fnum;
pos_T *fp = var2fpos(&argvars[0], TRUE, &fnum, FALSE);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2670,
/**/
2669,
/**/