summaryrefslogtreecommitdiff
path: root/src/popupwin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-18 22:50:38 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-18 22:50:38 +0200
commit165036ddba1318576a29f75d82fae8c326a48f18 (patch)
tree22cd671236c310f81cbf39a87e20f2f043a70b6f /src/popupwin.c
parentaeb2bdd0de5ce5b566509dda5ba9ad6f976063b3 (diff)
downloadvim-git-165036ddba1318576a29f75d82fae8c326a48f18.tar.gz
patch 8.2.1483: Vim9: error for using special as numberv8.2.1483
Problem: Vim9: error for using special as number when returning "false" from a popup filter. Solution: Use tv_get_bool(). (closes #6733)
Diffstat (limited to 'src/popupwin.c')
-rw-r--r--src/popupwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/popupwin.c b/src/popupwin.c
index 4b85fec19..053d6d3fd 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -3154,7 +3154,7 @@ invoke_popup_filter(win_T *wp, int c)
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);