lambdalisue / jupyter-vim-binding

Jupyter meets Vim. Vimmer will fall in love.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

edit mode curser disappeared in Chrome but works in Firefox

kelleyrw opened this issue · comments

Summary

About a month or so ago, the black blinking cursor in edit mode disappeared while using Chrome. When I switched to firefox, it works as expected.

Environment

  • Operating system : Mac OSX 10.12.6
  • Web browsers : Chrome: 61.0.3163.100 (Official Build) (64-bit), Firefox: 55.0.3, Safari: 11.0 (12604.1.38.1.7).
  • Version or revision of Jupyter Notebook : 4.3.0
  • Revision of jupyter-vim-binding : 7f1a585

Behavior

Black cursor in edit mode not appearing in edit mode in Chrome.

Expected

When in edit mode, a think black blinking cursor appears. Works in Firefox and Safari but not Chrome.

Actual

No cursor or indicator of where the keyboard location is. Chrome only.

Step by step procedure

Any jupyter notebook

What you have done to solve the issue

Isolated the issue to Chrome.

Remarks

I saw this happen sometimes if I use 90% zoom and a font with ligatures like fira code. I went back to a non-ligature font to fix it.

@kelleyrw Does @jwkvam's workaround works? If this is just a font issue, I'll close this.

Actually, I take back my comment about non-ligature fonts. I see this with other fonts as well to fix I always have to go back to %100 zoom. I prefer %90 for jupyter notebooks. I haven't tested this without this plugin to see where the issue lies.

Are you able to reproduce the issue? For me the workaround is use firefox (which is not my main browser). I would hope that this get's fixed so there is not need for a workaround.

I can reproduce at 90%. Just wanted to add that for instance at 75% and 67% of zoom it works fine, while at 50% it works only in few positions. For instance:

  • it mostly works on the left of closing braces
  • if I start typing a sequence of "a", it works every time the number of "a" typed is equal to 0 or 5 modulo 14 (!)
  • ... but if I move skim back the "a"s, it never works - only at the end of the line.
    I guess then this must be related to #2909

The bug also depends on the window size. For instance, if I work with a zoom of 75% and maximize the window in a 1366x768 monitor, it works fine, but the cursor disappears if I maximize the same window in a 1920x1080 monitor.

I also have the same problem, setting the zoom to 100% got my cursor back

I've switched to using jupyter-lab and it works great with no issues on Chrome.