change to for loop, also ignore aclocal

This commit is contained in:
~keith 2022-05-19 17:23:33 +00:00
parent 6e391e2324
commit ac49127e85
Signed by: keith
GPG Key ID: 5BEBEEAB2C73D520
2 changed files with 1 additions and 1165 deletions

1161
aclocal.m4 vendored

File diff suppressed because it is too large Load Diff

5
ui.c
View File

@ -458,10 +458,7 @@ char *word_wrap(char *text, int width, int max_word, int *lines)
int line_pos = 0;
char ch;
while ((ch = *text) != '\0') {
text++;
for (char ch; (ch = *text) != '\0'; text++) {
switch (ch) {
case '\n':
case ' ':