diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-07-03 18:10:05 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-07-03 18:10:05 +0200 |
| commit | e939ddc25927a1b0f03f3a878acfc1ffe167ff3f (patch) | |
| tree | c98f6644e480dacfbdcc3dbb8eac2aa25aac0d8f /text-motions.h | |
| parent | 506be16743cc5a049b9dcc640f2da74955f1ce2f (diff) | |
| download | vis-e939ddc25927a1b0f03f3a878acfc1ffe167ff3f.tar.gz vis-e939ddc25927a1b0f03f3a878acfc1ffe167ff3f.tar.xz | |
Add movements to next/previous character within same line
These movements always keep the cursor on the same line and do
not move over newlines.
Diffstat (limited to 'text-motions.h')
| -rw-r--r-- | text-motions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/text-motions.h b/text-motions.h index 64f68bf..0f99076 100644 --- a/text-motions.h +++ b/text-motions.h @@ -35,6 +35,9 @@ 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); +/* 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); /* * 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. |
