Closed haifengkao closed 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';.
ipc.on('nyaovim:paste'
input
normal
command = '<C-o>"+gp';
cmd+v should paste the text
cmd+v
cmd+v doesn't do anything
just paste with cmd+v
Hmm, I guess :execute 'normal!' "\<C-o>\"+gp" is correct, right?
:execute 'normal!' "\<C-o>\"+gp"
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 asinput
. But the commit changes it to anormal
command, which breaks commands such ascommand = '<C-o>"+gp';
.Expected Behavior
cmd+v
should paste the textActual Behavior
cmd+v
doesn't do anythingSteps to Reproduce (including precondition)
just paste with
cmd+v