aboutsummaryrefslogtreecommitdiff
path: root/text-motions.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-12 10:00:47 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-12 10:00:47 +0200
commit3939baaac101cea08c711638dfd537f4a039d0ae (patch)
tree93b2a73faae588cbe4f2fdda38e20c99ce94d71e /text-motions.c
parentf58a3d82fca1a3fb44d43f2ffba68b4445947c02 (diff)
parent4b4529f3cb885ad6427b0c5173c4054b844c6202 (diff)
downloadvis-3939baaac101cea08c711638dfd537f4a039d0ae.tar.gz
vis-3939baaac101cea08c711638dfd537f4a039d0ae.tar.xz
Merge branch 'fixups' of https://github.com/tycho/vis
Diffstat (limited to 'text-motions.c')
-rw-r--r--text-motions.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/text-motions.c b/text-motions.c
index 18e727f..0ad8e81 100644
--- a/text-motions.c
+++ b/text-motions.c
@@ -11,7 +11,7 @@
#define boundary(c) (isboundary((unsigned char)c))
// TODO: specify this per file type?
-int is_word_boundry(int c) {
+int is_word_boundary(int c) {
return ISASCII(c) && !(('0' <= c && c <= '9') ||
('a' <= c && c <= 'z') ||
('A' <= c && c <= 'Z') || c == '_');
@@ -405,19 +405,19 @@ size_t text_longword_start_prev(Text *txt, size_t pos) {
}
size_t text_word_end_next(Text *txt, size_t pos) {
- return text_customword_end_next(txt, pos, is_word_boundry);
+ return text_customword_end_next(txt, pos, is_word_boundary);
}
size_t text_word_end_prev(Text *txt, size_t pos) {
- return text_customword_end_prev(txt, pos, is_word_boundry);
+ return text_customword_end_prev(txt, pos, is_word_boundary);
}
size_t text_word_start_next(Text *txt, size_t pos) {
- return text_customword_start_next(txt, pos, is_word_boundry);
+ return text_customword_start_next(txt, pos, is_word_boundary);
}
size_t text_word_start_prev(Text *txt, size_t pos) {
- return text_customword_start_prev(txt, pos, is_word_boundry);
+ return text_customword_start_prev(txt, pos, is_word_boundary);
}
size_t text_sentence_next(Text *txt, size_t pos) {