diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-04-27 10:39:40 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-04-27 10:39:40 +0200 |
| commit | 9d3aa6c2d0d33d71d2815e238aeece15542f094b (patch) | |
| tree | ae8b02d9e06c94363d411265ec5f1efb6ba86675 /lua | |
| parent | be13b70e92c4fcdd7b39684e760a5a3a27a8ff4b (diff) | |
| download | vis-9d3aa6c2d0d33d71d2815e238aeece15542f094b.tar.gz vis-9d3aa6c2d0d33d71d2815e238aeece15542f094b.tar.xz | |
test/lua: update tests to match new cursor positioning code
cursor:to(line,col) now implies cursor.line == line and cursor.col == col
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/basic_cursor.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/basic_cursor.lua b/lua/basic_cursor.lua index 842914c..d78871d 100644 --- a/lua/basic_cursor.lua +++ b/lua/basic_cursor.lua @@ -7,8 +7,8 @@ results[3] = win.cursor.pos == 0 -- Place cursor within text win.cursor:to(5, 3) results[4] = win.cursor.line == 5 -results[5] = win.cursor.col == 4 -results[6] = win.cursor.pos == 31 +results[5] = win.cursor.col == 3 +results[6] = win.cursor.pos == 30 -- Invalid location win.cursor:to(0, 0) results[7] = win.cursor.line == 1 |
