diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-10-31 16:41:39 +0000 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-11-26 18:33:59 +0000 |
commit | 4efcb72bb758ce93e86fa3ef520e009d01d4891b (patch) | |
tree | 2f877ea3043773abc182e3d54abd8336caba997b /test/functional | |
parent | fa9076f276c16f64b96cd734f511e682a8621f6f (diff) | |
download | rneovim-4efcb72bb758ce93e86fa3ef520e009d01d4891b.tar.gz rneovim-4efcb72bb758ce93e86fa3ef520e009d01d4891b.tar.bz2 rneovim-4efcb72bb758ce93e86fa3ef520e009d01d4891b.zip |
feat(eval/method): partially port v8.1.1993
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
https://github.com/vim/vim/commit/196b4664432f932625cfb6371dc42c24efe6c203
server2client requires +clientserver, which hasn't been ported yet.
The eval.txt docs and test_clientserver.vim tests for server2client already exist, so include those
changes.
test_bufline.vim: Test for setbufline requires v8.1.1189 (which was reverted in #10848).
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/legacy/searchpos_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/legacy/searchpos_spec.lua b/test/functional/legacy/searchpos_spec.lua index 60f1edcd3f..fc18341c38 100644 --- a/test/functional/legacy/searchpos_spec.lua +++ b/test/functional/legacy/searchpos_spec.lua @@ -17,7 +17,7 @@ describe('searchpos', function() call('cursor', 1, 1) eq({1, 1, 2}, eval([[searchpos('\%(\([a-z]\)\|\_.\)\{-}xyz', 'pcW')]])) call('cursor', 1, 2) - eq({2, 1, 1}, eval([[searchpos('\%(\([a-z]\)\|\_.\)\{-}xyz', 'pcW')]])) + eq({2, 1, 1}, eval([['\%(\([a-z]\)\|\_.\)\{-}xyz'->searchpos('pcW')]])) command('set cpo-=c') call('cursor', 1, 2) |