]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0693: browse() first argument cannot be a bool v9.0.0693
authorBram Moolenaar <Bram@vim.org>
Sat, 8 Oct 2022 11:52:09 +0000 (12:52 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 8 Oct 2022 11:52:09 +0000 (12:52 +0100)
Problem:    browse() first argument cannot be a bool.
Solution:   Use tv_get_bool_chk() instead of tv_get_number_chk().
            (closes #11308)

src/filepath.c
src/version.c

index 02e7ed7dce2ac7bedeb0035cecaa74d6099ca590..d9fe83a541fb697e892b999e713a83b3e0000ade 100644 (file)
@@ -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);
index 15fdbaafe66030b42b8d1530b4a59ebad5be6ac1..86099f4ffda4f93488b2cd5183cbee968978dee8 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    693,
 /**/
     692,
 /**/