comparison src/testdir/test_cursor_func.vim @ 17837:f71ee7b04f0b v8.1.1915

patch 8.1.1915: more functions can be used as methods Commit: https://github.com/vim/vim/commit/1a3a89168d61c2fed91cbca812cf1c6983901b79 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 23 22:31:37 2019 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Fri, 23 Aug 2019 22:45:04 +0200
parents 8a095d343c59
children 0dcc2ee838dd
comparison
equal deleted inserted replaced
17836:a3061757584b 17837:f71ee7b04f0b
20 call assert_equal([2, 1, 0, 1], getcurpos()[1:]) 20 call assert_equal([2, 1, 0, 1], getcurpos()[1:])
21 " col number zero keeps the column 21 " col number zero keeps the column
22 call cursor(3, 0) 22 call cursor(3, 0)
23 call assert_equal([3, 1, 0, 1], getcurpos()[1:]) 23 call assert_equal([3, 1, 0, 1], getcurpos()[1:])
24 " below last line goes to last line 24 " below last line goes to last line
25 call cursor(9, 1) 25 eval [9, 1]->cursor()
26 call assert_equal([4, 1, 0, 1], getcurpos()[1:]) 26 call assert_equal([4, 1, 0, 1], getcurpos()[1:])
27 27
28 call setline(1, ["\<TAB>"]) 28 call setline(1, ["\<TAB>"])
29 call cursor(1, 1, 1) 29 call cursor(1, 1, 1)
30 call assert_equal([1, 1, 1], getcurpos()[1:3]) 30 call assert_equal([1, 1, 1], getcurpos()[1:3])