diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-12-31 12:33:36 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-12-31 13:20:12 +0100 |
| commit | b72a813a135a8d6921ee46e75d6e282cb53aca0c (patch) | |
| tree | 7344f4e4a921c06f9e13ca2a29189894b9b7a9b0 /vis.c | |
| parent | bfdc1dd7feafc282124104d33730898c25402a14 (diff) | |
| download | vis-b72a813a135a8d6921ee46e75d6e282cb53aca0c.tar.gz vis-b72a813a135a8d6921ee46e75d6e282cb53aca0c.tar.xz | |
vis-lua: implement vis.lines[..] array
This allows access to specific lines of a file, array indicies/line
numbers are 1 based. Read access is supported for [1, #lines] while
assigning to the 0 element will insert a new line at the beginning
of the file. Similarly assigning to lines[#lines+1] will add a new
line at the end of the file. The returned lines will not contain
any line termination characters.
Diffstat (limited to 'vis.c')
0 files changed, 0 insertions, 0 deletions
