From 1a3a89168d61c2fed91cbca812cf1c6983901b79 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 23 Aug 2019 22:31:37 +0200 Subject: patch 8.1.1915: more functions can be used as methods Problem: More functions can be used as methods. Solution: Make various functions usable as a method. --- src/testdir/test_cindent.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/testdir/test_cindent.vim') diff --git a/src/testdir/test_cindent.vim b/src/testdir/test_cindent.vim index a8a2345577..e12e457876 100644 --- a/src/testdir/test_cindent.vim +++ b/src/testdir/test_cindent.vim @@ -121,9 +121,9 @@ func Test_cindent_func() new setlocal cindent call setline(1, ['int main(void)', '{', 'return 0;', '}']) - call assert_equal(cindent(0), -1) - call assert_equal(cindent(3), &sw) - call assert_equal(cindent(line('$')+1), -1) + call assert_equal(-1, cindent(0)) + call assert_equal(&sw, 3->cindent()) + call assert_equal(-1, cindent(line('$')+1)) bwipe! endfunc -- cgit v1.2.3