forked from aniani/vim
patch 8.2.1533: Vim9: error when passing getreginfo() result to setreg()
Problem: Vim9: error when passing getreginfo() result to setreg(). Solution: Use dict_get_bool() for "isunnamed". (closes #6784)
This commit is contained in:
@@ -7427,7 +7427,7 @@ f_setreg(typval_T *argvars, typval_T *rettv)
|
||||
regname = pointreg;
|
||||
}
|
||||
}
|
||||
else if (dict_get_number(d, (char_u *)"isunnamed"))
|
||||
else if (dict_get_bool(d, (char_u *)"isunnamed", -1) > 0)
|
||||
pointreg = regname;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user