Open t9md opened 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.
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.
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.