You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Block cursor text rendering issue on Safari #118
Hello folks, thanks for making this! I've been trying to integrate vim mode to my little app MarkEdit and discovered this bug.
Since I am working on a native macOS app, I use Safari as the browser to load the editor, please check this video.
Screen.Recording.2023-04-26.at.12.43.28.PM.mov
As I move the cursor, the character rendered on the block cursor doesn't perfectly match the main editor. Interestingly, not all characters can reproduce this, in this example video, the { character works fine.
I am not sure if it has something to do with the coordsAtPos method in CodeMirror or not, and I am trying to investigate the root cause. It could also be a font issue on Safari, since I was not able to reproduce using Chrome.
Opening an issue here to track and in case you have some ideas. Thanks.
Activity
cyanzhong commentedon Apr 26, 2023
Looking into this screenshot closely, I think it's related to
coordAtPos:cyanzhong commentedon Apr 26, 2023
Opened a thread in codemirror forums too: https://discuss.codemirror.net/t/block-cursor-text-rendering-issue-on-safari/6371 it seems normal text selection also has the same problem.
Here's also an issue in
codemirror/devrepo: codemirror/dev#1149.