aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-01-20 07:46:16 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-01-20 10:35:44 +0100
commit0d4093c3371079c5f75055338f0341f684542465 (patch)
tree2bdab37770875bbb9e06e0f8f1ea371166167e19 /vis.h
parente1bf543ac6e9afb1be7f06c2ad02aad8e0b11fb5 (diff)
downloadvis-0d4093c3371079c5f75055338f0341f684542465.tar.gz
vis-0d4093c3371079c5f75055338f0341f684542465.tar.xz
Fix to/till movements
Some corner cases allowed to move between lines with the to/till movements. The change in find_prev serves two purposes. When searching for a string which the cursor is already above the match, this match is returned (pos += len). Secondly there was a failure when searching for strings with len == 1 which lead to `matched == 0` which was always true, even if the string was not found, therefore leading to a wrong return value.
Diffstat (limited to 'vis.h')
0 files changed, 0 insertions, 0 deletions