comparison src/testdir/test_put.vim @ 18000:7a19c8d6bb9e v8.1.1996

patch 8.1.1996: more functions can be used as methods Commit: https://github.com/vim/vim/commit/aad222c9c9a1e4fe6ae5a1fe95bb084619be0e65 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 6 22:46:09 2019 +0200 patch 8.1.1996: more functions can be used as methods Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 Sep 2019 23:00:03 +0200
parents 4935244c1128
children f70a3c1000bb
comparison
equal deleted inserted replaced
17999:9fd4d58b3e5b 18000:7a19c8d6bb9e
39 call setline(1, ['Line 1', 'Line2', 'Line 3', '']) 39 call setline(1, ['Line 1', 'Line2', 'Line 3', ''])
40 exe 'norm! gg"add"AddG""p' 40 exe 'norm! gg"add"AddG""p'
41 call assert_equal(['Line 3', '', 'Line 1', 'Line2'], getline(1,'$')) 41 call assert_equal(['Line 3', '', 'Line 1', 'Line2'], getline(1,'$'))
42 " clean up 42 " clean up
43 bw! 43 bw!
44 call setreg('a', a[0], a[1]) 44 eval a[0]->setreg('a', a[1])
45 endfunc 45 endfunc
46 46
47 func Test_put_expr() 47 func Test_put_expr()
48 new 48 new
49 call setline(1, repeat(['A'], 6)) 49 call setline(1, repeat(['A'], 6))