#771258 less: Searching doesn't work as expected when line doesn't fit at screen

Package:
less
Source:
less
Description:
pager program similar to more
Submitter:
Askar Safin
Date:
2024-01-02 04:00:06 UTC
Severity:
normal
Tags:
#771258#5
Date:
2014-11-28 00:23:40 UTC
From:
To:
Search in less doesn't work when line doesn't fit at screen. For example, I create file via "echo {0..999} > /tmp/a".
Then I type "less /tmp/a" and make my terminal window so small that the line doesn't fit at terminal window. Then I
type "/99<Enter>". less successfully finds first few 99's, but then I type "n", "n", "n", "n", etc and less doesn't scroll
to more 99's, which are at the next screen.

The bug is present in 444 and also reproducible in 470 beta.