aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-08-07 22:33:43 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-08-07 22:33:43 +0200
commit2425c1614f51c1c3641ccd2c99f3e751c8ceb421 (patch)
treec5768f95e0062d8bf9e9b5ede66109371e957570 /text-motions.h
parentfd89e4dd1418d1474894d09c0ea8418f32dba490 (diff)
downloadvis-2425c1614f51c1c3641ccd2c99f3e751c8ceb421.tar.gz
vis-2425c1614f51c1c3641ccd2c99f3e751c8ceb421.tar.xz
vis: limit to/till movements to current line
Diffstat (limited to 'text-motions.h')
-rw-r--r--text-motions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/text-motions.h b/text-motions.h
index ce3c5d5..d65bdf2 100644
--- a/text-motions.h
+++ b/text-motions.h
@@ -21,6 +21,9 @@ size_t text_char_prev(Text*, size_t pos);
* original position */
size_t text_find_next(Text*, size_t pos, const char *s);
size_t text_find_prev(Text*, size_t pos, const char *s);
+/* same as above but limit searched range to the line containing pos */
+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