rhysd / NyaoVim

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

cannot copy unicode characters #77

Closed haifengkao closed 7 years ago

haifengkao commented 8 years ago

unicode characters cannot be copied

Expected Behavior

should see 中文 in system clipboard

Actual Behavior

nothing is copied

Steps to Reproduce (including precondition)

type a unicode char, e.g. 中文 in normal mode, use V<ctrl-c>

Your Environment

rhysd commented 8 years ago

I also could confirm this. It seems that <C-c> is sent to Neovim properly, but Neovim looks not to handle it as 'Ctrl + C'.

I confirmed it with executing below code in DevTools:

document.getElementById('nyaovim-editor').editor.getClient().input('<C-c>')

I need to investigate further.

haifengkao commented 7 years ago

This issue is really annoying. I can reproduce this issue with yyp as well. neovim doesn't have this issue.

Can you give me a hint about where to look at?

haifengkao commented 7 years ago

If I execute nyaovim with npm start command, the unicode characters can be copied correctly. If I use npm run pack:osx to create a standalone app and run it, the unicode cannot be copied or pasted.

** Updated: If I open the standalone app in terminal with open /Applications/Nyaovim.app, the unicode is handled correctly. If I double-click to open the app, the unicode char cannot be copied or pasted.

haifengkao commented 7 years ago

I am pretty sure that this issue is from neovim.

rhysd commented 7 years ago

thank you so much for investigation.