mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 9.0.0693: browse() first argument cannot be a bool
Problem: browse() first argument cannot be a bool. Solution: Use tv_get_bool_chk() instead of tv_get_number_chk(). (closes #11308)
This commit is contained in:
@ -2583,7 +2583,7 @@ f_browse(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
|| check_for_string_arg(argvars, 3) == FAIL))
|
||||
return;
|
||||
|
||||
save = (int)tv_get_number_chk(&argvars[0], &error);
|
||||
save = (int)tv_get_bool_chk(&argvars[0], &error);
|
||||
title = tv_get_string_chk(&argvars[1]);
|
||||
initdir = tv_get_string_buf_chk(&argvars[2], buf);
|
||||
defname = tv_get_string_buf_chk(&argvars[3], buf2);
|
||||
|
@ -699,6 +699,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
693,
|
||||
/**/
|
||||
692,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user