mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
Interpret 0xA0 (nbsp in UTF-8 mode) as space char for searches. Issue #20
This commit is contained in:
parent
3b279e5ec6
commit
fbfbe4013c
@ -178,8 +178,12 @@ get_srch(struct document *document)
|
|||||||
/* skip double-width char placeholders */
|
/* skip double-width char placeholders */
|
||||||
if (c == UCS_NO_CHAR)
|
if (c == UCS_NO_CHAR)
|
||||||
continue;
|
continue;
|
||||||
#endif
|
|
||||||
|
|
||||||
|
if (c == 0xA0) {
|
||||||
|
add_srch_chr(document, ' ', x, y, 1);
|
||||||
|
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