mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Compute correct number of cells with CONFIG_COMBINE
Otherwise, there are unnecessary spaces at the end of lines in tables containing combining characters. Signed-off-by: Fabienne Ducroquet <fabiduc@gmail.com>
This commit is contained in:
parent
ec30a09a36
commit
c1140f54c4
@ -651,7 +651,12 @@ good_char:
|
||||
unicode_val_T data;
|
||||
|
||||
data = utf8_to_unicode(&chars, end);
|
||||
#ifdef CONFIG_COMBINE
|
||||
if (data == UCS_SOFT_HYPHEN
|
||||
|| (data != UCS_NO_CHAR && wcwidth((wchar_t)data) == 0))
|
||||
#else
|
||||
if (data == UCS_SOFT_HYPHEN)
|
||||
#endif
|
||||
continue;
|
||||
|
||||
if (data == UCS_NO_BREAK_SPACE
|
||||
|
Loading…
Reference in New Issue
Block a user