1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

Use isscreensafe also for UTF-8

This commit is contained in:
Witold Filipczyk 2006-07-20 03:42:22 +02:00 committed by Witold Filipczyk
parent 8a1ef2ada9
commit 8fa3a4c88f

View File

@ -450,12 +450,7 @@ add_char_data(struct string *screen, struct screen_driver *driver,
unsigned char data, unsigned char border) unsigned char data, unsigned char border)
#endif /* CONFIG_UTF_8 */ #endif /* CONFIG_UTF_8 */
{ {
if ( if (!isscreensafe(data)) {
#ifdef CONFIG_UTF_8
!use_utf8_io(driver) &&
#endif /* CONFIG_UTF_8 */
!isscreensafe(data)
) {
add_char_to_string(screen, ' '); add_char_to_string(screen, ' ');
return; return;
} }