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)
diff --git a/src/filepath.c b/src/filepath.c
index 02e7ed7..d9fe83a 100644
--- a/src/filepath.c
+++ b/src/filepath.c
@@ -2583,7 +2583,7 @@
|| 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);