t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

All Operator no longer work in atom-1.27.0-dev #1058

Open t9md opened 6 years ago

t9md commented 6 years ago

Noticed while investigating https://github.com/t9md/atom-vim-mode-plus/issues/802#issuecomment-379883176

Most operator got exception such like saying "Attempt to mutate a read-only TextEditor". This seems to be caused by atom/atom#16999.

artarf commented 4 years ago

Not sure if this helps, but I had the problem #802 when pasting in read only editor. Fixed it by overriding PutBefore.mutateSelection() in my init script.

The fix was to set newRange to selection range if paste() returns null.