diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-04-04 09:22:26 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-04-04 09:31:49 +0200 |
| commit | ca0b1fe1a590aa640fb20fcdfde3aeed3a0eac03 (patch) | |
| tree | 3ed66754cf50cc2c38a93179f61e397f67778bb1 /text-motions.h | |
| parent | dd730eb1feb46e9688350b0ff401694653f90554 (diff) | |
| download | vis-ca0b1fe1a590aa640fb20fcdfde3aeed3a0eac03.tar.gz vis-ca0b1fe1a590aa640fb20fcdfde3aeed3a0eac03.tar.xz | |
vis: add motions to move by codepoints
Some people might prefer this for <Backspace> behavior. Except for that
and debugging purposes using `ga` and `g8` it is not yet that useful.
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 cca84c1..5df4e32 100644 --- a/text-motions.h +++ b/text-motions.h @@ -16,6 +16,9 @@ size_t text_end(Text*, size_t pos); size_t text_char_next(Text*, size_t pos); size_t text_char_prev(Text*, size_t pos); +size_t text_codepoint_next(Text*, size_t pos); +size_t text_codepoint_prev(Text*, size_t pos); + /* find the given substring either in forward or backward direction. * does not wrap around at file start / end. if no match is found return * original position */ |
