aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/apl.lua
diff options
context:
space:
mode:
authorzsugabubus <zsugabubus@users.noreply.github.com>2020-01-12 15:57:48 +0100
committerzsugabubus <zsugabubus@users.noreply.github.com>2020-01-12 16:34:50 +0100
commitc9831b1120e7c29419183c5fde8cf1bf4e69d5bd (patch)
tree64b3f425cd0211296e9f170154c898c843283538 /lua/lexers/apl.lua
parente136e348cbd0ea4bf2dd8de6f98da1ca1924bc96 (diff)
downloadvis-c9831b1120e7c29419183c5fde8cf1bf4e69d5bd.tar.gz
vis-c9831b1120e7c29419183c5fde8cf1bf4e69d5bd.tar.xz
vis: fix search wrapping bugs
1) “$” matches in the middle of the text. visvis ^ - standing here \/ - at first we search forward-\ \_/ - wrap, if nothing found <---/ After wrapping, in the second range “$” will treat end of the range as EOL so “/vis$” will wisely match and moves cursor to the first column. 2) No match after wrapping. vissssss ^^ - standing here or here \\____/ - search this before wrapping ---\ V - search range after wrapping <--/ “/vis” will *not* match (after wrapping), because it crosses ranges. --- So the real solution would be that instead of the end position, the start position of the possible match should be limited because a match can cross the search ranges. To keep things simple, simply search two whole text after wrapping. visvis \____/
Diffstat (limited to 'lua/lexers/apl.lua')
0 files changed, 0 insertions, 0 deletions