change to for loop, also ignore aclocal
This commit is contained in:
parent
6e391e2324
commit
ac49127e85
2 changed files with 1 additions and 1165 deletions
1161
aclocal.m4
vendored
1161
aclocal.m4
vendored
File diff suppressed because it is too large
Load diff
5
ui.c
5
ui.c
|
@ -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 ' ':
|
||||
|
|
Loading…
Reference in a new issue