#844099 less: option -j makes less hang after search and Page Up

Package:
less
Source:
less
Description:
pager program similar to more
Submitter:
Vincent Lefevre
Date:
2024-05-01 02:09:03 UTC
Severity:
normal
Tags:
#844099#5
Date:
2016-11-12 13:08:44 UTC
From:
To:
Type the following:

  { printf "%d\n" `seq 1 100000`; sleep 999; } | less -j2

then / 1 [Return] to search for the characters "1". Then [PageUp].
At this time, "less" hangs.

Note: If one types [Down] before [PageUp], this problem does not
occur.