replit/codemirror-vim

[Bug] Deleting until end of logical line leaves the last character undeleted

SPiCaRiA opened this issue · 1 comments

Simply try dg$ command in the demo site: https://raw.githack.com/replit/codemirror-vim/master/dev/web-demo.html

You will find out that the last character of the logical line cannot be deleted, even when you repeatedly type dg$.

For example, for the line below, where the block cursor is denoted by the pipes (i.e., we are not on the letter "a"):

I am |a| line in codemirror.

Expect (in vim):

I am| |

Actual (in codemirror-vim):

I am |.|

Also, I'm using a upstream application built on top of codemirror and codemirror-vim, which I don't think any updates made in this repo will be immediately adopted. So I'm wondering if there is a quickfix that I can do in a preamble script to redefine the behavior of dg$?

Thanks!