From 0280cf83b32ea9cbcdce1cf470fa74da5fe44ccb Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Tue, 12 Apr 2016 22:56:30 +0100 Subject: Add "[(" and "])" motions for jumping to a parenthese pair's start/end --- text-motions.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'text-motions.c') diff --git a/text-motions.c b/text-motions.c index e948fae..a25299b 100644 --- a/text-motions.c +++ b/text-motions.c @@ -612,6 +612,14 @@ size_t text_block_end(Text *txt, size_t pos) { return text_paren_start_end(txt, pos, +1, text_object_curly_bracket); } +size_t text_parenthese_start(Text *txt, size_t pos) { + return text_paren_start_end(txt, pos, -1, text_object_paranthese); +} + +size_t text_parenthese_end(Text *txt, size_t pos) { + return text_paren_start_end(txt, pos, +1, text_object_paranthese); +} + size_t text_bracket_match(Text *txt, size_t pos) { return text_bracket_match_symbol(txt, pos, NULL); } -- cgit v1.2.3