Mercurial > vim
diff src/testdir/test_bufline.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 | 0da9bc55c31a |
children | f71ee7b04f0b |
line wrap: on
line diff
--- a/src/testdir/test_bufline.vim +++ b/src/testdir/test_bufline.vim @@ -152,11 +152,11 @@ func Test_appendbufline_redraw() let lines =<< trim END new foo - let winnr=bufwinnr('foo') - let buf=bufnr('foo') + let winnr = 'foo'->bufwinnr() + let buf = bufnr('foo') wincmd p call appendbufline(buf, '$', range(1,200)) - exe winnr. 'wincmd w' + exe winnr .. 'wincmd w' norm! G wincmd p call deletebufline(buf, 1, '$')