-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Fix spacing issues on ligatures as seen on #36. #122
Conversation
Do a proper analysis of the ligatures (if any) and try to avoid double character draws / moving spaces etc.
That feature got in after my first PR - I'll have a look at it..
|
@splhack - I think I have something working for both of us: |
@Shirk 👍 |
The result of this diff is that MacVim has a reasonable user experience for ligature fonts if you have |
Any update on this? |
@jordwalke - I'm undecided.. I could remove the [WIP] for this part and convince @douglasdrumond to merge but it would still only work for people with either So I'm debating with myself whether to add a notice to the option dialog ("currently cursorline or relativenumber setting is required for this feature") or go looking for a way to get vim to always redraw the active window when it has ligatures enabled. I've been looking around the MacVim-gui design and there seems to be no easy way for the GUI process to communicate to the back-end process that the active (VIM)window needs redraw. |
My justification for suggesting this be merged is that it fixes bugs that are in master and seems to not make anything else worse. Of course, I'd love for everything to be redrawn at the right time perfectly with or without set cursorline
highlight CursorLine guibg=NONE Not to downplay how awesome it would be for this to not be necessary. |
What will happen if someone does not want ligatures rendered, does not have a font with ligatures, but has |
There is certainly an option (already in master, in fact) - @Shirk will have to confirm that it actually has no impact when toggled off - but I can't even detect a perf impact when toggled on (on my very weak macbook). |
@chdiza - ligatures have been merged already in a previous (see #36) and have no impact at all since they are in no way related to [EDIT] rephrased to prevent this comment from sounding harsh which it wasn't supposed to be (it was a long day..) |
Make it clear that currently ligatures will only draw properly with `cursorline` or `relativenumber` enabled.
@jordwalke for now I'm going with the "add a note the preferences" way so this PR has a chance of getting merged quickly. @douglasdrumond - if you wouldn't mind to have a look. |
Fix spacing issues on ligatures as seen on #36.
This PR is a response to the new issues reported in #36, currently WIP - see checklist below.
The idea is to do a proper analysis of the ligatures (if any) and try to avoid double character draws / moving spaces etc.
code changes:
cursorline
/relativenumber
requirement.testing: