diff src/testdir/test_bufwintabinfo.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 7589f103ec11
children 4935244c1128
line wrap: on
line diff
--- a/src/testdir/test_bufwintabinfo.vim
+++ b/src/testdir/test_bufwintabinfo.vim
@@ -18,7 +18,7 @@ function Test_getbufwintabinfo()
     let l = getbufinfo('%')
     call assert_equal(bufnr('%'), l[0].bufnr)
     call assert_equal('vim', l[0].variables.editor)
-    call assert_notequal(-1, index(l[0].windows, bufwinid('%')))
+    call assert_notequal(-1, index(l[0].windows, '%'->bufwinid()))
 
     " Test for getbufinfo() with 'bufmodified'
     call assert_equal(0, len(getbufinfo({'bufmodified' : 1})))