diff --git a/src/global.c b/src/global.c index dffa3a68..9130dff8 100644 --- a/src/global.c +++ b/src/global.c @@ -969,7 +969,7 @@ void shortcut_init(void) #endif #ifndef NANO_TINY - add_to_funcs(do_wordlinechar_count, MMAIN, + add_to_funcs(count_lines_words_and_characters, MMAIN, N_("Word Count"), WITHORSANS(wordcount_gist), TOGETHER, VIEW); #endif @@ -1334,7 +1334,7 @@ void shortcut_init(void) #ifndef NANO_TINY add_to_sclist(MMAIN, "M-T", 0, cut_till_eof, 0); add_to_sclist(MEXECUTE, "^V", 0, cut_till_eof, 0); - add_to_sclist(MMAIN, "M-D", 0, do_wordlinechar_count, 0); + add_to_sclist(MMAIN, "M-D", 0, count_lines_words_and_characters, 0); #else add_to_sclist(MMAIN, "M-H", 0, do_help, 0); #endif diff --git a/src/prototypes.h b/src/prototypes.h index 529f2fa9..75ee9b8e 100644 --- a/src/prototypes.h +++ b/src/prototypes.h @@ -516,7 +516,7 @@ void do_linter(void); void do_formatter(void); #endif #ifndef NANO_TINY -void do_wordlinechar_count(void); +void count_lines_words_and_characters(void); #endif void do_verbatim_input(void); void complete_a_word(void); diff --git a/src/rcfile.c b/src/rcfile.c index dc05e230..137157ec 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -319,7 +319,7 @@ keystruct *strtosc(const char *input) else if (!strcmp(input, "findbracket")) s->func = do_find_bracket; else if (!strcmp(input, "wordcount")) - s->func = do_wordlinechar_count; + s->func = count_lines_words_and_characters; else if (!strcmp(input, "recordmacro")) s->func = record_macro; else if (!strcmp(input, "runmacro")) diff --git a/src/text.c b/src/text.c index fc110936..5b2cc782 100644 --- a/src/text.c +++ b/src/text.c @@ -2919,9 +2919,9 @@ void do_formatter(void) #endif /* ENABLE_COLOR */ #ifndef NANO_TINY -/* Our own version of "wc". Note that its character counts are in +/* Our own version of "wc". Note that the character count is in * multibyte characters instead of single-byte characters. */ -void do_wordlinechar_count(void) +void count_lines_words_and_characters(void) { linestruct *was_current = openfile->current; size_t was_x = openfile->current_x;