-
Notifications
You must be signed in to change notification settings - Fork 143
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
selection background drawn with the line spacing for multiline selection #1329
selection background drawn with the line spacing for multiline selection #1329
Conversation
contributes to #1286 |
if nobody objects I will merge this today EoB. |
@sratz: Do you have more insights into that? Do you see problems / side effects with this change? |
This change looks good. By not extending the selection of the last line to the bottom, this avoids many other minor visual issues (e.g. if there is also an other highlight applied on the last line, such as a marked occurrence or a search result). However: This change only fixes it for Win32. What about macOS and Linux? Can the same fix be applied there as well? |
ac5038f
to
d97c17a
Compare
I missed to merge this change for the M3 deadline :( Any chance this could go in for RC1? The coding is rather safe, especially in the default 'line spacing 0' case, in which no behavior is changed at all. |
It is fixing a bug and I trust in your good judgement, so I will defer the decision to you with a +1 from me (the PMC). |
Thanks! |
Line selection background is drawn without the line spacing value in the StyledText control. For a multiline selection, a zebra effect occurs which looks questionable from my point of view. In this change, the line spacing height is included when drawing the selection background.
Before with line spacing value 60%:
After with line spacing value 60%: