use an internal list of newlines
commit8dd493f576d2b5fa80c1613b91a5fd9c661c4792
authorGeorgi Kirilov <>
Wed, 16 Dec 2020 20:53:31 +0000 (16 22:53 +0200)
committerGeorgi Kirilov <>
Fri, 19 May 2023 15:26:42 +0000 (19 18:26 +0300)
tree1ef134d20b8dd292972ccd507a66f2a98d4a7b3f
parent70afebefa5837cc4aa83471019df0a270499486e
use an internal list of newlines

Some editors (vis) do not offer an easy way to get the nearest
newline character before/after an *arbitrary* position.

Besides, this makes the API surface area smaller.
edit.lua
init.lua
input.lua
node.lua
parser/init.lua
walker.lua