diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-04-07 17:37:01 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-04-09 11:28:06 +0200 |
| commit | 6a6bc5bb4c1b5be36b342266d0f74ec4a2843b00 (patch) | |
| tree | f095c1494810b54812e328c268d5e0fa344909a7 /text-motions.h | |
| parent | d2004b15f1e90efafedc367335c07ad4636d291d (diff) | |
| download | vis-6a6bc5bb4c1b5be36b342266d0f74ec4a2843b00.tar.gz vis-6a6bc5bb4c1b5be36b342266d0f74ec4a2843b00.tar.xz | |
text: drop special handling of \r\n line endings
Diffstat (limited to 'text-motions.h')
| -rw-r--r-- | text-motions.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/text-motions.h b/text-motions.h index 5df4e32..e5f76bd 100644 --- a/text-motions.h +++ b/text-motions.h @@ -28,11 +28,11 @@ size_t text_find_prev(Text*, size_t pos, const char *s); size_t text_line_find_next(Text*, size_t pos, const char *s); size_t text_line_find_prev(Text*, size_t pos, const char *s); -/* begin finish end next - * v v v v - * [\r]\n I am a line! [\r]\n - * ^ ^ - * prev start +/* begin finish next + * v v v + * \n I am a line! \n + * ^ ^ ^ + * prev start end */ size_t text_line_prev(Text*, size_t pos); size_t text_line_begin(Text*, size_t pos); |
