# HG changeset patch # User Bram Moolenaar # Date 1597784404 -7200 # Node ID 76627c7263491083ac7a4cb7f83ed72e989389ac # Parent 349859948450397759db930f01006a5e5858193b patch 8.2.1483: Vim9: error for using special as number Commit: https://github.com/vim/vim/commit/165036ddba1318576a29f75d82fae8c326a48f18 Author: Bram Moolenaar Date: Tue Aug 18 22:50:38 2020 +0200 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 --- 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); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1483, +/**/ 1482, /**/ 1481,