From ff587fb25a56656a9a426a5086b47a5cf891092b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 13 Jan 2015 19:41:56 +0100 Subject: 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. --- text-motions.h | 1 + 1 file changed, 1 insertion(+) (limited to 'text-motions.h') 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. -- cgit v1.2.3