vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 975f6770d72ce38f43b2a3d9c1222396735e6bac parent 87f35dd836132a0ededa215188f429a6d55390a8 Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 27 Apr 2016 10:39:40 +0200 test/lua: update tests to match new cursor positioning code cursor:to(line,col) now implies cursor.line == line and cursor.col == col Diffstat:
| M | lua/basic_cursor.lua | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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