aboutsummaryrefslogtreecommitdiff
path: root/text-motions.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-03 12:58:55 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-03 16:22:44 +0100
commit5eb46c36bdedb72ef844479568772f0e0f390fe6 (patch)
tree115034e75612d2cdbe6226de4b53d07c5e7366d8 /text-motions.h
parent5832ac7bc1f249d6fb48b0c438157e8b227fbee0 (diff)
downloadvis-5eb46c36bdedb72ef844479568772f0e0f390fe6.tar.gz
vis-5eb46c36bdedb72ef844479568772f0e0f390fe6.tar.xz
text-motion: hide ugly casts for isboundary behind a #define
Diffstat (limited to 'text-motions.h')
-rw-r--r--text-motions.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/text-motions.h b/text-motions.h
index b1388c8..cf108b3 100644
--- a/text-motions.h
+++ b/text-motions.h
@@ -79,10 +79,10 @@ size_t text_word_start_prev(Text*, size_t pos);
/*
* More general versions of the above, define your own word boundaries.
*/
-size_t text_customword_start_next(Text*, size_t pos, int (*isboundry)(int));
-size_t text_customword_start_prev(Text*, size_t pos, int (*isboundry)(int));
-size_t text_customword_end_next(Text*, size_t pos, int (*isboundry)(int));
-size_t text_customword_end_prev(Text*, size_t pos, int (*isboundry)(int));
+size_t text_customword_start_next(Text*, size_t pos, int (*isboundary)(int));
+size_t text_customword_start_prev(Text*, size_t pos, int (*isboundary)(int));
+size_t text_customword_end_next(Text*, size_t pos, int (*isboundary)(int));
+size_t text_customword_end_prev(Text*, size_t pos, int (*isboundary)(int));
/* TODO: implement the following semantics
* A sentence is defined as ending at a '.', '!' or '?' followed by either the
* end of a line, or by a space or tab. Any number of closing ')', ']', '"'