rhysd / NyaoVim

Web-enhanced Extensible Neovim Frontend
Other
2.22k stars 57 forks source link

Paste doesn't work again #103

Closed haifengkao closed 7 years ago

haifengkao commented 7 years ago

https://github.com/rhysd/NyaoVim/commit/02711f4f5170e592ee42e2652cb3f67bee8875bb breaks paste.

The codes below ipc.on('nyaovim:paste' (https://github.com/rhysd/NyaoVim/blob/master/renderer/nyaovim-app.ts ) assumes the command is executed as input. But the commit changes it to a normal command, which breaks commands such ascommand = '<C-o>"+gp';.

Expected Behavior

cmd+v should paste the text

Actual Behavior

cmd+v doesn't do anything

Steps to Reproduce (including precondition)

just paste with cmd+v

rhysd commented 7 years ago

Hmm, I guess :execute 'normal!' "\<C-o>\"+gp" is correct, right?