Resolves: #2112870 - fix regression introduced in the last commit
This commit is contained in:
parent
26b2c3ae54
commit
4dcaf08c8b
@ -4283,7 +4283,7 @@ index 7d6100f..04cd646 100644
|
|||||||
- column++;
|
- column++;
|
||||||
+ /* mb_width() returns 0 for control characters */
|
+ /* mb_width() returns 0 for control characters */
|
||||||
+ const int width = mb_width (c);
|
+ const int width = mb_width (c);
|
||||||
+ column += MIN(1, width);
|
+ column += MAX(1, width);
|
||||||
if (!column)
|
if (!column)
|
||||||
die (EXIT_FAILURE, 0, _("input line is too long"));
|
die (EXIT_FAILURE, 0, _("input line is too long"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user