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 highlighting a line that contains only spaces and line breaks #2

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

Conversation

Artawower
Copy link

Hi. It's a bit annoying when selection-highlight-mode tries to highlight empty lines.
This pull request is to add an optional boolean variable to control this behavior.
The default value is nil for backward compatibility

Without selection-highlight-mode-disable-for-empty-line-p
2024-05-14_21-12

With (setq selection-highlight-mode-disable-for-empty-line-p t)

2024-05-14_21-16

abougouffa added a commit to abougouffa/selection-highlight-mode that referenced this pull request Jul 31, 2024
The default value is set to ignore space-only selections. We can set it to `nil`
by default so we keep the current behavior, with the user being able to
customize it easily.

This PR will fixes the issue addressed by balloneij#2 when the value is set to ignore
space-only regions. So, it is a more generic approach to fix this issue.
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