aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
diff options
context:
space:
mode:
authorRob Pilling <robpilling@gmail.com>2016-04-12 22:56:29 +0100
committerRob Pilling <robpilling@gmail.com>2016-04-12 22:56:29 +0100
commit255da074c15de15d45eb1582c819d68ee480800d (patch)
tree339ae9529e55a2a71b5c66d79fda08ff3c533c25 /text-motions.h
parent3939baaac101cea08c711638dfd537f4a039d0ae (diff)
downloadvis-255da074c15de15d45eb1582c819d68ee480800d.tar.gz
vis-255da074c15de15d45eb1582c819d68ee480800d.tar.xz
Add "[{" and "]}" motions to jump to a block's start/end
Diffstat (limited to 'text-motions.h')
-rw-r--r--text-motions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/text-motions.h b/text-motions.h
index e601073..6066168 100644
--- a/text-motions.h
+++ b/text-motions.h
@@ -112,6 +112,8 @@ size_t text_function_end_prev(Text*, size_t pos);
size_t text_section_next(Text*, size_t pos);
size_t text_section_prev(Text*, size_t pos);
*/
+size_t text_block_start(Text*, size_t pos);
+size_t text_block_end(Text*, size_t pos);
/* search coresponding '(', ')', '{', '}', '[', ']', '>', '<', '"', ''' */
size_t text_bracket_match(Text*, size_t pos);
/* same as above but explicitly specify symbols to match */