How to prevent less --quit-if-one-screen --no-init +G from filling the screen with empty lines when the file is shorter than the screen?
4
votes
1
answer
252
views
I use
less -XFR +G
to page some variations of git log
, and **all four options are important**.
The thing I don't like is that it fills the screen with empty lines (marked with ~
) when the log/file is shorter than a screen.
The shorter repro steps that I could find are the following:
echo -e 'one\ntwo\nthree' | less -F +G
I would like the command to behave just like it was not there if the file fits the page.
Asked by Enlico
(2258 rep)
Apr 21, 2020, 06:45 PM
Last activity: Apr 24, 2024, 03:08 AM
Last activity: Apr 24, 2024, 03:08 AM