Mercurial > vim
comparison src/testdir/test_cursor_func.vim @ 18035:11dca9732a48 v8.1.2013
patch 8.1.2013: more functions can be used as methods
Commit: https://github.com/vim/vim/commit/f92e58cadb03156879e9bdbf6341bf662d9c87cc
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 8 21:51:41 2019 +0200
patch 8.1.2013: 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 | Sun, 08 Sep 2019 22:00:04 +0200 |
parents | 7a19c8d6bb9e |
children | 66964658cc3c |
comparison
equal
deleted
inserted
replaced
18034:834b9558f93c | 18035:11dca9732a48 |
---|---|
81 let winid = win_getid() | 81 let winid = win_getid() |
82 let [winrow, wincol] = win_screenpos(winid) | 82 let [winrow, wincol] = win_screenpos(winid) |
83 call assert_equal({'row': winrow, | 83 call assert_equal({'row': winrow, |
84 \ 'col': wincol + 0, | 84 \ 'col': wincol + 0, |
85 \ 'curscol': wincol + 7, | 85 \ 'curscol': wincol + 7, |
86 \ 'endcol': wincol + 7}, screenpos(winid, 1, 1)) | 86 \ 'endcol': wincol + 7}, winid->screenpos(1, 1)) |
87 call assert_equal({'row': winrow, | 87 call assert_equal({'row': winrow, |
88 \ 'col': wincol + 13, | 88 \ 'col': wincol + 13, |
89 \ 'curscol': wincol + 13, | 89 \ 'curscol': wincol + 13, |
90 \ 'endcol': wincol + 13}, winid->screenpos(1, 7)) | 90 \ 'endcol': wincol + 13}, winid->screenpos(1, 7)) |
91 call assert_equal({'row': winrow + 2, | 91 call assert_equal({'row': winrow + 2, |