diff options
Diffstat (limited to 'text-motions.h')
| -rw-r--r-- | text-motions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/text-motions.h b/text-motions.h index 72878cd..c89c256 100644 --- a/text-motions.h +++ b/text-motions.h @@ -36,6 +36,10 @@ size_t text_line_lastchar(Text*, size_t pos); size_t text_line_end(Text*, size_t pos); size_t text_line_next(Text*, size_t pos); size_t text_line_offset(Text*, size_t pos, size_t off); +/* get character count of the line upto `pos' */ +int text_line_char_get(Text*, size_t pos); +/* get position of the `count' character in the line containing `pos' */ +size_t text_line_char_set(Text*, size_t pos, int count); /* 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); |
