Test lesser width

This commit is contained in:
Nikita Ivanov 2023-03-25 21:51:58 +01:00
parent f1f649fd9c
commit a2d9315cc7
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -250,7 +250,7 @@ static RESULT preview(int argc, char *argv[])
}
/* To some reason lf chops off last 2 characters of a line */
w_l = MAX(0, w_l - 2);
w_l = MAX(0, w_l - 10);
snprintf(w_buf, LEN(w_buf), "%ld", w_l);
snprintf(h_buf, LEN(h_buf), "%ld", h_l);