aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
diff options
context:
space:
mode:
authorGeorgi Kirilov <in.the@repo>2018-10-02 19:10:58 +0300
committerMarc André Tanner <mat@brain-dump.org>2020-01-26 16:28:36 +0100
commit3a1023ee5022071b46f659a82290bb0b3da42137 (patch)
tree307ae035f4c1e4e12008e8bed8bd456601f82106 /text-motions.h
parentb7013fa7e549162af478d58ffc1f5ed369f58408 (diff)
downloadvis-3a1023ee5022071b46f659a82290bb0b3da42137.tar.gz
vis-3a1023ee5022071b46f659a82290bb0b3da42137.tar.xz
vis: don't search off screen when highlighting matches
Diffstat (limited to 'text-motions.h')
-rw-r--r--text-motions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/text-motions.h b/text-motions.h
index 061ff30..b4fee28 100644
--- a/text-motions.h
+++ b/text-motions.h
@@ -117,9 +117,9 @@ size_t text_block_end(Text*, size_t pos);
size_t text_parenthesis_start(Text*, size_t pos);
size_t text_parenthesis_end(Text*, size_t pos);
/* search coresponding '(', ')', '{', '}', '[', ']', '>', '<', '"', ''' */
-size_t text_bracket_match(Text*, size_t pos);
+size_t text_bracket_match(Text*, size_t pos, const Filerange *limits);
/* same as above but explicitly specify symbols to match */
-size_t text_bracket_match_symbol(Text*, size_t pos, const char *symbols);
+size_t text_bracket_match_symbol(Text*, size_t pos, const char *symbols, const Filerange *limits);
/* search the given regex pattern in either forward or backward direction,
* starting from pos. does wrap around if no match was found. */