vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 8de1a738d80580378e42a80752c42a48c91f7419 parent 221906ec09d2bd40616e05096dc0bc73606545b1 Author: Marc André Tanner <mat@brain-dump.org> Date: Fri, 11 Nov 2016 15:04:32 +0100 test/lua: adapt to different line ending type returned by Lua API Diffstat:
| M | lua/basic_empty_file.lua | | | 2 | +- |
| M | lua/basic_file.lua | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lua/basic_empty_file.lua b/lua/basic_empty_file.lua @@ -2,7 +2,7 @@ local win = vis.win local results = {} results[1] = win.file.name == 'basic_empty_file.in' -results[2] = win.file.newlines == 'nl' +results[2] = win.file.newlines == 'lf' results[3] = win.file.size == 0 results[4] = #win.file.lines == 0 results[5] = win.file.lines[0] == '' diff --git a/lua/basic_file.lua b/lua/basic_file.lua @@ -2,7 +2,7 @@ local win = vis.win local results = {} results[1] = win.file.name == 'basic_file.in' results[2] = #win.file.lines == 9 -results[3] = win.file.newlines == 'nl' +results[3] = win.file.newlines == 'lf' results[4] = win.file.size == 63 results[5] = win.file.lines[0] == '1: abc' results[6] = win.file.lines[6] == '6: pqr'