# HG changeset patch # User Bram Moolenaar # Date 1665230403 -7200 # Node ID aa0f7c66653ce0404f9bed1b7c62dd18335305a0 # Parent 126ee85ab88aa4f0d6563d077048f0c86c974586 patch 9.0.0693: browse() first argument cannot be a bool Commit: https://github.com/vim/vim/commit/5a049846e4c54d70094c3f29ffbd340c75e9c50e Author: Bram Moolenaar Date: Sat Oct 8 12:52:09 2022 +0100 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 --- a/src/filepath.c +++ b/src/filepath.c @@ -2583,7 +2583,7 @@ f_browse(typval_T *argvars UNUSED, typva || 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 --- a/src/version.c +++ b/src/version.c @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 693, +/**/ 692, /**/ 691,