diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-08 12:52:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-08 12:52:09 +0100 |
commit | 5a049846e4c54d70094c3f29ffbd340c75e9c50e (patch) | |
tree | a2a68580a6aa364e72f0d74cfc2f722f1e8452a7 | |
parent | b7f52f5659c68b61ccc645ef866f8fd82361cd26 (diff) |
patch 9.0.0693: browse() first argument cannot be a boolv9.0.0693
Problem: browse() first argument cannot be a bool.
Solution: Use tv_get_bool_chk() instead of tv_get_number_chk().
(closes #11308)
-rw-r--r-- | src/filepath.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 693, +/**/ 692, /**/ 691, |