aboutsummaryrefslogtreecommitdiff
path: root/visrc.lua
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-06 12:03:32 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-06 13:46:25 +0200
commit329f18b8260f5d589b49678f41595fbff5f7d30a (patch)
treed20477b0f3fc6d3db9bd0b45bcbb7f1bc4fb1b9a /visrc.lua
parent700ec992a2ed6fc16362052fb27933390fe2d7ee (diff)
downloadvis-329f18b8260f5d589b49678f41595fbff5f7d30a.tar.gz
vis-329f18b8260f5d589b49678f41595fbff5f7d30a.tar.xz
vis: make af and if text objects more robust
It still assumes that a function is terminated by the "\n}" seqeuence and uses the same code as the % motion for matching curly braces. Hence this won't work for functions containing an unbalanced number of { or } symbols (e.g. due to comments or strings etc). Also due to the way text objects are implemented in general the inner variant will only work properly if the cursor is located somewhere within the function. Otherwise it will include everything from the current cursor position up to the end of the function body.
Diffstat (limited to 'visrc.lua')
0 files changed, 0 insertions, 0 deletions