From: Bram Moolenaar Date: Sat, 8 Oct 2022 11:52:09 +0000 (+0100) Subject: patch 9.0.0693: browse() first argument cannot be a bool X-Git-Tag: v9.0.0693 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a049846e4c54d70094c3f29ffbd340c75e9c50e;p=thirdparty%2Fvim.git 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) --- diff --git a/src/filepath.c b/src/filepath.c index 02e7ed7dce..d9fe83a541 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -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); diff --git a/src/version.c b/src/version.c index 15fdbaafe6..86099f4ffd 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 693, /**/ 692, /**/