aboutsummaryrefslogtreecommitdiff
path: root/vis-motions.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-27vis: let % move to next special char if not already thereMarc André Tanner1-1/+22
2016-01-20Fix to/till movementsMarkus Teich1-2/+6
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.
2016-01-19vis: fix # and * motions to only match wordsMarc André Tanner1-9/+12
Word matching is currently implemented by using the \< and \> anchors of the regex(3) library part of libc. Another option would have been to use the text_object_word_find_{next,prev} functions from text-objects.c. The used search term is currently not added to the search history. Based on a patch by Markus Teich.
2016-01-18vis: tweak count handling of till motions 't' and 'T'Marc André Tanner1-2/+4
The behaviour when already in front of a match is deliberately different from vim. Based on a patch from Markus Teich.
2016-01-15vis: sentence motions are not linewiseMarc André Tanner1-2/+2
Close #141
2016-01-14vis: s/moves/vis_motions/gMarc André Tanner1-2/+2
2016-01-14vis: s/ops/vis_operators/gMarc André Tanner1-2/+2
2016-01-14vis: move motion releated functions to corresponding fileMarc André Tanner1-0/+91
2016-01-10Simplify code by using text_bytes_alloc0Marc André Tanner1-7/+1
2015-11-08vis: remove regex based syntax highlightingMarc André Tanner1-0/+1
2015-11-08vis: more comments and cleanupsMarc André Tanner1-5/+5
2015-11-07vis: prefix enum VisMotion values with VIS_Marc André Tanner1-100/+61
2015-11-07vis: move motions to separate fileMarc André Tanner1-0/+269