diff options
| author | Rob Pilling <robpilling@gmail.com> | 2016-04-12 22:56:30 +0100 |
|---|---|---|
| committer | Rob Pilling <robpilling@gmail.com> | 2016-04-12 22:56:30 +0100 |
| commit | 0280cf83b32ea9cbcdce1cf470fa74da5fe44ccb (patch) | |
| tree | 0f9f28e8be29fd476fedd4efadb93f0af5be0941 /text-motions.c | |
| parent | 255da074c15de15d45eb1582c819d68ee480800d (diff) | |
| download | vis-0280cf83b32ea9cbcdce1cf470fa74da5fe44ccb.tar.gz vis-0280cf83b32ea9cbcdce1cf470fa74da5fe44ccb.tar.xz | |
Add "[(" and "])" motions for jumping to a parenthese pair's start/end
Diffstat (limited to 'text-motions.c')
| -rw-r--r-- | text-motions.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |
