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

Fixes failure to search for more than one double-width character.

This commit is contained in:
Yuriy M. Kaminskiy 2009-06-29 18:22:53 +04:00 committed by Kalle Olavi Niemitalo
parent e452420d5f
commit e5f4c59a20

View File

@ -174,6 +174,12 @@ get_srch(struct document *document)
if (document->data[y].chars[x].attr & SCREEN_ATTR_UNSEARCHABLE)
continue;
#ifdef CONFIG_UTF8
/* skip double-width char placeholders */
if (c == UCS_NO_CHAR)
continue;
#endif
if (c > ' ') {
add_srch_chr(document, c, x, y, 1);
continue;