change to for loop, also ignore aclocal
This commit is contained in:
parent
6e391e2324
commit
ac49127e85
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;
|
int line_pos = 0;
|
||||||
|
|
||||||
char ch;
|
for (char ch; (ch = *text) != '\0'; text++) {
|
||||||
while ((ch = *text) != '\0') {
|
|
||||||
text++;
|
|
||||||
|
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case '\n':
|
case '\n':
|
||||||
case ' ':
|
case ' ':
|
||||||
|
|
Loading…
Reference in New Issue