Fixed lua/moon line mapping

This commit is contained in:
Yorwba 2014-02-01 22:27:48 +01:00 committed by leaf corcoran
parent da1bc6f8ec
commit 437be6efb5
2 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,9 @@ do
local _exp_0 = mtype(l)
if "string" == _exp_0 or DelayedLine == _exp_0 then
line_no = line_no + 1
for _ in l:gmatch("\n") do
line_no = line_no + 1
end
out[line_no] = posmap[i]
elseif Lines == _exp_0 then
local _

View File

@ -44,6 +44,7 @@ class Lines
switch mtype l
when "string", DelayedLine
line_no += 1
line_no += 1 for _ in l\gmatch"\n"
out[line_no] = posmap[i]
when Lines
_, line_no = l\flatten_posmap line_no, out