diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-05 07:29:27 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-05 07:29:27 +0200 |
| commit | c0b411255115569c63430d0162920b53747a917a (patch) | |
| tree | b13e741ed8478dc781045e0f4f9680e3e121da1f /text-motions.h | |
| parent | bbb3a3ba1f17ccc95f1e7778312a5915afca182d (diff) | |
| download | vis-c0b411255115569c63430d0162920b53747a917a.tar.gz vis-c0b411255115569c63430d0162920b53747a917a.tar.xz | |
Add helper function which finds the start of the next line
Diffstat (limited to 'text-motions.h')
| -rw-r--r-- | text-motions.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/text-motions.h b/text-motions.h index 597d4bc..aa87170 100644 --- a/text-motions.h +++ b/text-motions.h @@ -13,8 +13,8 @@ size_t text_char_prev(Text*, size_t pos); size_t text_find_char_next(Text*, size_t pos, const char *s, size_t len); size_t text_find_char_prev(Text*, size_t pos, const char *s, size_t len); -/* begin finish - * v v +/* begin finish next + * v v v * \n[\r] I am a line! \n[\r] * ^ ^ * start end @@ -23,6 +23,7 @@ size_t text_line_begin(Text*, size_t pos); size_t text_line_start(Text*, size_t pos); size_t text_line_finish(Text*, size_t pos); size_t text_line_end(Text*, size_t pos); +size_t text_line_next(Text*, size_t pos); /* * A word consists of a sequence of non-blank characters, separated with white space. * TODO?: An empty line is also considered to be a word. This is equivalant to a WORD |
