To: vim_dev@googlegroups.com Subject: Patch 8.2.1483 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1483 Problem: Vim9: error for using special as number when returning "false" from a popup filter. Solution: Use tv_get_bool(). (closes #6733) Files: src/popupwin.c *** ../vim-8.2.1482/src/popupwin.c 2020-08-18 13:04:10.795215214 +0200 --- src/popupwin.c 2020-08-18 22:46:56.875119180 +0200 *************** *** 3154,3160 **** 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); vim_free(argv[1].vval.v_string); clear_tv(&rettv); --- 3154,3160 ---- 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_bool(&rettv); vim_free(argv[1].vval.v_string); clear_tv(&rettv); *** ../vim-8.2.1482/src/version.c 2020-08-18 22:31:41.668654181 +0200 --- src/version.c 2020-08-18 22:47:52.678788362 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1483, /**/ -- You can tune a file system, but you can't tuna fish -- man tunefs /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///