aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-01-13 19:41:56 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-01-13 23:01:09 +0100
commitff587fb25a56656a9a426a5086b47a5cf891092b (patch)
tree911915a3d8ecca9f48effe889bd069776d0f2472 /text-motions.h
parentcad4ad2c4e9de198ca78958b4db79886ffb81c56 (diff)
downloadvis-ff587fb25a56656a9a426a5086b47a5cf891092b.tar.gz
vis-ff587fb25a56656a9a426a5086b47a5cf891092b.tar.xz
Add new logical linewise movements
The column position is currently not correctly preserved when there are lines with multibyte characters involved spanning multiple screen lines. In general this might still be a bit fragile.
Diffstat (limited to 'text-motions.h')
-rw-r--r--text-motions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/text-motions.h b/text-motions.h
index e69a073..dca9fac 100644
--- a/text-motions.h
+++ b/text-motions.h
@@ -34,6 +34,7 @@ size_t text_line_finish(Text*, size_t pos);
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);
/*
* 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.