Resolves: #2112870 - fix regression introduced in the last commit

This commit is contained in:
Kamil Dudka 2022-08-02 14:19:10 +02:00
parent 26b2c3ae54
commit 4dcaf08c8b

View File

@ -4283,7 +4283,7 @@ index 7d6100f..04cd646 100644
- column++;
+ /* mb_width() returns 0 for control characters */
+ const int width = mb_width (c);
+ column += MIN(1, width);
+ column += MAX(1, width);
if (!column)
die (EXIT_FAILURE, 0, _("input line is too long"));
}