aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-10 21:00:47 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-10 21:00:47 +0200
commit8d960c6dc536efcbe5dc2fae330a95015e0aae86 (patch)
tree5cd3ade394c11968c47ab4de000459c32feaf439 /text-motions.h
parent16bd3ede6241a4790246ad7fcbde21e8c1d626a0 (diff)
downloadvis-8d960c6dc536efcbe5dc2fae330a95015e0aae86.tar.gz
vis-8d960c6dc536efcbe5dc2fae330a95015e0aae86.tar.xz
text-motions: add text_line_prev function
Diffstat (limited to 'text-motions.h')
-rw-r--r--text-motions.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/text-motions.h b/text-motions.h
index e549402..dc9b66a 100644
--- a/text-motions.h
+++ b/text-motions.h
@@ -24,9 +24,10 @@ size_t text_find_char_prev(Text*, size_t pos, const char *s, size_t len);
/* begin finish next
* v v v
* \n[\r] I am a line! \n[\r]
- * ^ ^
- * start end
+ * ^ ^ ^
+ * prev start end
*/
+size_t text_line_prev(Text*, size_t pos);
size_t text_line_begin(Text*, size_t pos);
size_t text_line_start(Text*, size_t pos);
size_t text_line_finish(Text*, size_t pos);