#806460 search highlight glitch

Package:
lynx-cur
Source:
lynx
Submitter:
Zefram
Date:
2023-04-26 10:03:35 UTC
Severity:
normal
Tags:
#806460#5
Date:
2015-11-27 17:21:59 UTC
From:
To:
Under some circumstances, whose envelope I have not fully determined,
there is a visual glitch when highlighting instances of text searched
for in a displayed web page.

When searching for a given search string in a given page, and looking
at a particular instance of the string, whether the glitch occurs is
totally deterministic.  When searching in page source for a string that
begins with a dot character, the glitch almost always manifests, but not
absolutely always.  I have also seen the glitch, but less frequently,
when performing other searches in page source.  I have never seen the
glitch when searching a rendered page.

The nature of the glitch is that the highlighted instance of the string
is offset one column to the left of its proper position.  The surrounding
unhighlighted text remains in its proper position.  As a result, the
character immediately preceding the search string is absent from the
display (overwritten by the out-of-place first highlighted character), and
the last character of the search string is duplicated (one out-of-place
highlighted instance followed immediately by one in-place unhighlighted
instance).  Obviously this is quite an inconvenience when one wants to
c&p some text including the search string.

#806460#10
Date:
2015-11-29 13:09:28 UTC
From:
To:
Hi Zefram,

thanks for the bug report.

Zefram wrote:

I was able to reproduce the glitch inside an uxterm (at at least two
different terminal sizes) when searching for ".html" in the source of
my own homepage http://axel.beckert.ch/ when the string

  href="https://piuparts.debian.org/sid/maintainer/a/abe@debian.org.html"

was displayed as

  href="https://piuparts.debian.org/sid/maintainer/a/abe@debian.or.htmll"
                                                                  ^^^^^

It seems to happen only at two of a dozen search hits inside the
source code, i.e. you might need to scroll around to see it.

I can reproduce this issue in Debian 8 Jessie as well as in Debian
Unstable. Hence Cc'ing upstream as it's present in the current
upstream development release, too.

		Regards, Axel