Patch 8.2.1483

5 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 18, 2020, 4:51:17 PM8/18/20
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages