Re: bug in `more -c` when using . to repeat <enter>
Karel Zak <[email protected]>
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <m633xtvsldssilgylxennikyqgrcvjda6wyitzkh74botdbqni@gvisx77odjzp> |
On Sun, Mar 16, 2025 at 04:45:42PM GMT, Benno Schulenberg wrote:
>
> To reproduce, run `./more -c README`. Type <enter> a few times,
> and see that for each <enter> the screen scrolls one line to show
> another line of the README. (Except when there is a blank line:
> then it scrolls two lines and shows two blank lines -- that is
> probably a separate bug.)
>
> Now type . instead, which should repeat the last command, in this
> case <enter>. See how the screen is cleared and just one line of
> the README is shown. Keep typing . and see that each time just
> one line is displayed. Typing . here behaves as if the user had
> typed 1 <enter>, not just <enter>.
>
> Bug was found while using `./page README` after `ln -s more page`.
> But `./page` does not do the doubling of blank lines.
Fixed, thanks for your report!
Karel
--
Karel Zak <[email protected]>
http://karelzak.blogspot.com