Mercurial > vim
diff src/testdir/test_popupwin.vim @ 17825:ce993ba17adb v8.1.1909
patch 8.1.1909: more functions can be used as methods
Commit: https://github.com/vim/vim/commit/e49fbff384e45dd17fed72321c26937edf6de16b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 21 22:50:07 2019 +0200
patch 8.1.1909: more functions can be used as methods
Problem: More functions can be used as methods.
Solution: Make a few more functions usable as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Aug 2019 23:00:04 +0200 |
parents | 7e6b7a4f13bc |
children | 9513821d9d8f |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -2332,8 +2332,7 @@ func Test_popupmenu_info_align_menu() endfunc func Test_popupwin_recycle_bnr() - let winid = popup_notification('nothing wrong', {}) - let bufnr = winbufnr(winid) + let bufnr = popup_notification('nothing wrong', {})->winbufnr() call popup_clear() let winid = popup_notification('nothing wrong', {}) call assert_equal(bufnr, winbufnr(winid))