aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-24 18:43:18 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-24 18:47:49 +0200
commit0329e4aee01778f67c718cd827daa6bcfcef45f7 (patch)
tree97ce154441c51598e5e7ae486965c5733694fddd /text-motions.h
parent511337a68cf7329e08397631c48199641441d086 (diff)
downloadvis-0329e4aee01778f67c718cd827daa6bcfcef45f7.tar.gz
vis-0329e4aee01778f67c718cd827daa6bcfcef45f7.tar.xz
text-motion: introduce text_line_{up,down}
Diffstat (limited to 'text-motions.h')
-rw-r--r--text-motions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/text-motions.h b/text-motions.h
index 3c7c9c5..438a42f 100644
--- a/text-motions.h
+++ b/text-motions.h
@@ -39,6 +39,9 @@ size_t text_line_offset(Text*, size_t pos, size_t off);
/* move to the next/previous character on the same line */
size_t text_line_char_next(Text*, size_t pos);
size_t text_line_char_prev(Text*, size_t pos);
+/* move to same offset in previous/next line */
+size_t text_line_up(Text*, size_t pos);
+size_t text_line_down(Text*, size_t pos);
/*
* A longword consists of a sequence of non-blank characters, separated with
* white space. TODO?: An empty line is also considered to be a word.