Cursor offset when typing
Describe the bug The further I type on a line the more the cursor is offset away from the text (to the right).
To Reproduce Detailed steps to reproduce the behavior:
- Run
mvim --clean - Type
iand start typing.
Expected behavior
The last letter being typed in the screenshot is the period but the cursor is way off.
Screenshots If applicable, copy/paste the text or add screenshots to help explain your problem.
Environment (please complete the following information):
- Vim version:
VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct 21 2019 08:38:12) macOS version Included patches: 1-2168 Compiled by Homebrew - OS: macOS 10.15
- Terminal: GUI
@JezuzStardust thank you for an issue,
I can't reproduce it with version from GitHub. Could you check it as well in your environment?
@eirnym I just now tried to install from head (brew uninstal macvim && brew install macvim --HEAD. Is this the correct way to install the GitHub version or do I have to clone it and compile it myself?
With the commands I wrote above I get the same problem when using mvim --clean (and of course also if I actually use my .vimcr).
yes, it's correct. GitHub binaries are official, I personally use them for many years.
OK, just tried it again using the binary this time. Still the same problem. I also noticed that the cursor resets to the correct position if the line wraps or if I start a new line of text.
it's strange. I have no such problem at all (and haven't). I have tried to build MacVim from source and still no such problem. Could you investigate the problem further?
I managed to find the problem now! For some reason I had disabled the option "Use Core Text Renderer" under the preference menu. When I re-enabled that and restarted MacVim, the problem went away. I am not sure, but perhaps this is still something to investigate?
Huh that's odd. I would put this to investigate later but I would like to deprecate non-Core Text Renderer path (it doesn't work perfectly and has glitches) so likely not immediately. If there are other reasons why you can't use the Core Text renderer let me know.
@JezuzStardust thank you! This was driving me nuts.
@ychin Good work!
Snapshot 160 was fixed the issue, but font rendering is… slightly different (more spaces in between letters). I won't create another issue now as you want to sunset the non-Core Text Rendering. Please, notify me if you need this issue