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 /src/filepath.c | |
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)
Diffstat (limited to 'src/filepath.c')
-rw-r--r-- | src/filepath.c | 2 |
1 files changed, 1 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); |