diff --git a/Makefile b/Makefile index b3b8ff88..0130c8ac 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ teletype.zip: clean-zip docs/cheatsheet/cheatsheet.pdf format: - git-clang-format -f --style=file + git-clang-format -f --style=file main format-all: find . -type f -name "*.c" -o -name "*.h" | xargs clang-format -style=file -i diff --git a/module/help_mode.c b/module/help_mode.c index f5d328bb..0cc535ca 100644 --- a/module/help_mode.c +++ b/module/help_mode.c @@ -1692,9 +1692,7 @@ bool text_search_forward(search_state_t* state, const char* needle, bool text_search_reverse(search_state_t* state, const char* needle, const char** haystack, int haystack_len) { const int needle_len = strlen(needle); - if (state->line >= haystack_len) { - state->line = haystack_len - 1; - } + if (state->line >= haystack_len) { state->line = haystack_len - 1; } for (; state->line >= 0; state->line--) { const int haystack_line_len = strlen(haystack[state->line]); for (state->ch = haystack_line_len - needle_len; state->ch >= 0;