bug in `more -c` when displayed file has blank lines in certain places

Benno Schulenberg <[email protected]>
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
To reproduce, make it so that your terminal has 29 or 35 or 37 rows.
Then run `./more -c NEWS` and type ? to display the in-app help text.
(The NEWS file should be the one from util-linux-2.41-rc2.)

Then type <Space>.  See that the top row still displays the second line
of the help text: "Star (*) indicates argument becomes new default."

Somehow `more -c` forgets to clear the top row when the corresponding
line in the file is blank.

(Versions: 2.37.2 and 2.41-rc2.)


Benno
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmfZTooFAwAAAAAACgkQUUu+Lrjhlh8M
XQ/+KeXIEg15185YgZQvUc3SqhsUbc0KUDF1w9kq0kVhtjUMvC1KfzID9BlrRBUiuYImfSNDiG79
panA49QzYsbFQMlloOxEY8Z2f0dFCT2qr0+bcPXljtaL08UNA6KTc5HM5QSqyAV+WUFUxuf+Mile
be9TC5l7Xo5ZV5A9zIeAGphtydNd9MMFlBIolWsCHE2oyIVFBCyl/IGxTMcZMCX++m84cJZmfPwF
f1y8s1NBW5Hnpvz8iLYa+m+YD7bnGGYW18jmZiR99DyQ6dHhXROln5Pjz6Uw4VCjd1hR1L3Bo1Bg
Vvql+P9M6F7PSjVRyMxUllHyMsYSo8HyXW44/5uAIevi8K5BCq2dNOURcQV//C2wBJe9DoHe9lQ4
9F7S8CvlMNq2wBq6s1BfLjjeKabZm7CkRDX16uUslcPcBPS5h9FHmLxuCG3Io6i46DZ6jKFZ2DA6
+kpValFmFdT+IBcWX2sykB9xbp72kFnOmkk3PLel6ZKD9hnGfEBx0iW/iJE5Qe1dCenoIQcgeLvk
tCi6/vAruNut+RLI3Y4S66mAJGK76ULoNwV3Nq0KqWPRFLEEg+etfONN86suUTdDOWkZoFpzmucZ
A80jeraEPV9JXzSafwdtcFWVMiN0K5lO3DN2XbAUa0rZ/0mYskjDjYfCaTmsMXTZ25imjnUJcz0S
MhI=
=bbJJ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.