Skip to content

Commit a406465

Browse files
committed
fix with fmt
1 parent 03d7f86 commit a406465

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static void fmt(const char *str, int width)
127127
w ++;
128128
if (c == ' ' || c == '\t' || c == '\n')
129129
last = ptr;
130-
if ((width > 0 && w >= width && last) || c == '\n') {
130+
if ((width > 0 && w >= width && last && s < last) || c == '\n') {
131131
while(s != last) {
132132
#ifdef _WIN32
133133
int n = utf_ff(s, last);

0 commit comments

Comments
 (0)