Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent help screen from disappearing if the user has set $LESS #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ecerulm
Copy link

@ecerulm ecerulm commented Feb 27, 2024

If the user has something like

export LESS=-FRX

like I do , then less will exit immediately if there is less that one page of text. (-F or --quit-if-one-screen Causes less to automatically exit if the entire file can be displayed on the first screen.)

In that case pressing shift-F1 just "flashes" the help page . The proposed change make sure that the --quit-if-one-screen option is not in effect when pressing shift-F1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant