patch 8.2.1483: Vim9: error for using special as number
Problem: Vim9: error for using special as number when returning "false"
from a popup filter.
Solution: Use tv_get_bool(). (closes #6733)
diff --git a/src/popupwin.c b/src/popupwin.c
index 4b85fec..053d6d3 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -3154,7 +3154,7 @@
call_callback(&wp->w_filter_cb, -1, &rettv, 2, argv);
if (win_valid_popup(wp) && old_lnum != wp->w_cursor.lnum)
popup_highlight_curline(wp);
- res = tv_get_number(&rettv);
+ res = tv_get_bool(&rettv);
vim_free(argv[1].vval.v_string);
clear_tv(&rettv);