Skip to content

prevent highlighting a line that contains only spaces and line breaks#2

Open
Artawower wants to merge 1 commit intoballoneij:masterfrom
Artawower:master
Open

prevent highlighting a line that contains only spaces and line breaks#2
Artawower wants to merge 1 commit intoballoneij:masterfrom
Artawower:master

Conversation

@Artawower
Copy link
Copy Markdown

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