Skip to content

Commit

Permalink
text-motions: fix misspelled function name "is_word_boundry"
Browse files Browse the repository at this point in the history
Should be "is_word_boundary"

Signed-off-by: Steven Noonan <[email protected]>
  • Loading branch information
tycho committed Apr 12, 2016
1 parent 65e6576 commit 4b4529f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions text-motions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 == '_');
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion text-motions.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ size_t text_search_forward(Text *txt, size_t pos, Regex *regex);
size_t text_search_backward(Text *txt, size_t pos, Regex *regex);

/* is c a special symbol delimiting a word? */
int is_word_boundry(int c);
int is_word_boundary(int c);

#endif
4 changes: 2 additions & 2 deletions text-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static Filerange text_object_customword(Text *txt, size_t pos, int (*isboundary)
}

Filerange text_object_word(Text *txt, size_t pos) {
return text_object_customword(txt, pos, is_word_boundry);
return text_object_customword(txt, pos, is_word_boundary);
}

Filerange text_object_longword(Text *txt, size_t pos) {
Expand Down Expand Up @@ -117,7 +117,7 @@ Filerange text_object_longword_outer(Text *txt, size_t pos) {
}

Filerange text_object_word_outer(Text *txt, size_t pos) {
return text_object_customword_outer(txt, pos, is_word_boundry);
return text_object_customword_outer(txt, pos, is_word_boundary);
}

Filerange text_object_word_find_next(Text *txt, size_t pos, const char *word) {
Expand Down

0 comments on commit 4b4529f

Please sign in to comment.