aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-08-28 13:50:15 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-08-28 13:50:15 +0200
commit8a33f6ab4edaf9e43388f99b75229aab1ee7ba23 (patch)
treeebf94e4cd47f30624bb477bc7ee6083b89235f15 /text-motions.h
parentb5d121dc1ca4edc0cfff888ba411f0837e6e0ebc (diff)
downloadvis-8a33f6ab4edaf9e43388f99b75229aab1ee7ba23.tar.gz
vis-8a33f6ab4edaf9e43388f99b75229aab1ee7ba23.tar.xz
Improve text motions
Diffstat (limited to 'text-motions.h')
-rw-r--r--text-motions.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/text-motions.h b/text-motions.h
index bbeca49..234376c 100644
--- a/text-motions.h
+++ b/text-motions.h
@@ -4,11 +4,14 @@
#include <stddef.h>
#include "text.h"
-/* begin finish
- * v v
- * | I am a line! |
- * ^ ^
- * start end
+size_t text_find_char_next(Text*, size_t pos, const char *s, size_t len);
+size_t text_find_char_prev(Text*, size_t pos, const char *s, size_t len);
+
+/* begin finish
+ * v v
+ * \n[\r] I am a line! \n[\r]
+ * ^ ^
+ * start end
*/
size_t text_line_begin(Text*, size_t pos);
size_t text_line_start(Text*, size_t pos);