From 3a24e6a5562e4b1ea456fbe36607bd8a9c92744d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 24 Sep 2014 16:16:30 +0200 Subject: Change semantics of text_line_end Also make movement to end of line inclusive. This has the effect that $ moves to the last character on a line but d$ still deletes said character. --- text-motions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text-motions.h') diff --git a/text-motions.h b/text-motions.h index 18457a5..82450f6 100644 --- a/text-motions.h +++ b/text-motions.h @@ -24,8 +24,8 @@ size_t text_find_char_prev(Text*, size_t pos, const char *s, size_t len); /* begin finish next * v v v * [\r]\n I am a line! [\r]\n - * ^ ^ ^ - * prev start end + * ^ ^ ^ + * prev start end */ size_t text_line_prev(Text*, size_t pos); size_t text_line_begin(Text*, size_t pos); -- cgit v1.2.3