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:
parent
e452420d5f
commit
e5f4c59a20
@ -174,6 +174,12 @@ get_srch(struct document *document)
|
|||||||
if (document->data[y].chars[x].attr & SCREEN_ATTR_UNSEARCHABLE)
|
if (document->data[y].chars[x].attr & SCREEN_ATTR_UNSEARCHABLE)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef CONFIG_UTF8
|
||||||
|
/* skip double-width char placeholders */
|
||||||
|
if (c == UCS_NO_CHAR)
|
||||||
|
continue;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (c > ' ') {
|
if (c > ' ') {
|
||||||
add_srch_chr(document, c, x, y, 1);
|
add_srch_chr(document, c, x, y, 1);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user