aboutsummaryrefslogtreecommitdiff
path: root/register.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-12-31 12:33:36 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-12-31 13:20:12 +0100
commitb72a813a135a8d6921ee46e75d6e282cb53aca0c (patch)
tree7344f4e4a921c06f9e13ca2a29189894b9b7a9b0 /register.h
parentbfdc1dd7feafc282124104d33730898c25402a14 (diff)
downloadvis-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 'register.h')
0 files changed, 0 insertions, 0 deletions