From 3a1023ee5022071b46f659a82290bb0b3da42137 Mon Sep 17 00:00:00 2001 From: Georgi Kirilov Date: Tue, 2 Oct 2018 19:10:58 +0300 Subject: vis: don't search off screen when highlighting matches --- text-motions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text-motions.h') 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. */ -- cgit v1.2.3