aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-24 16:16:30 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-24 16:16:30 +0200
commit3a24e6a5562e4b1ea456fbe36607bd8a9c92744d (patch)
treebef2a4f40fbacc6074eab0dc682ff8c3345b3ff7 /text-motions.h
parent6703eb20d1fd5c05545f8f1360eef3020bb9d8b8 (diff)
downloadvis-3a24e6a5562e4b1ea456fbe36607bd8a9c92744d.tar.gz
vis-3a24e6a5562e4b1ea456fbe36607bd8a9c92744d.tar.xz
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.
Diffstat (limited to 'text-motions.h')
-rw-r--r--text-motions.h4
1 files changed, 2 insertions, 2 deletions
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);