Mercurial > vim
changeset 30717:aa0f7c66653c v9.0.0693
patch 9.0.0693: browse() first argument cannot be a bool
Commit: https://github.com/vim/vim/commit/5a049846e4c54d70094c3f29ffbd340c75e9c50e
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Oct 2022 14:00:03 +0200 |
parents | 126ee85ab88a |
children | 118268e20251 |
files | src/filepath.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);