aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
diff options
context:
space:
mode:
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);