Patch 9.0.0693

4 views
Skip to first unread message

Bram Moolenaar

unread,
Oct 8, 2022, 7:53:55 AM10/8/22
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages