Patch 9.0.0693
Problem: browse() first argument cannot be a bool.
Solution: Use tv_get_bool_chk() instead of tv_get_number_chk().
(closes #11308)
Files: src/filepath.c
*** ../vim-9.0.0692/src/filepath.c 2022-10-01 19:43:48.606494048 +0100
--- src/filepath.c 2022-10-08 12:45:59.642505629 +0100
***************
*** 2583,2589 ****
|| check_for_string_arg(argvars, 3) == FAIL))
return;
! save = (int)tv_get_number_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);
--- 2583,2589 ----
|| check_for_string_arg(argvars, 3) == FAIL))
return;
! 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);
*** ../vim-9.0.0692/src/version.c 2022-10-08 12:20:25.410196228 +0100
--- src/version.c 2022-10-08 12:47:17.802326613 +0100
***************
*** 701,702 ****
--- 701,704 ----
{ /* Add new patch number below this line */
+ /**/
+ 693,
/**/
--
Q: Why do ducks have flat feet?
A: To stamp out forest fires.
Q: Why do elephants have flat feet?
A: To stamp out flaming ducks.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20221008115341.9E89B1C0D0A%40moolenaar.net.