Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim.eval("v:char") hangs if {char2} of digraph input is <BS> #435

Closed
tomtomjhj opened this issue Mar 13, 2020 · 1 comment
Closed

vim.eval("v:char") hangs if {char2} of digraph input is <BS> #435

tomtomjhj opened this issue Mar 13, 2020 · 1 comment

Comments

@tomtomjhj
Copy link
Sponsor

Ultisnips registers an au InsertCharPre * that calls a python function that runs vim.eval("v:char"). With this plugin enabled, pressing <BS> as the second char makes nvim hang. Of course passing <BS> to {char2} doesn't do something interesting, but I frequently do this by mistake.

To reproduce,

  1. nvim -u NORC
  2. :au InsertCharPre * py3 import vim; vim.eval("v:char")
  3. i<C-k>a<BS>

I'm using the latest version of nvim and pynvim.

@tomtomjhj
Copy link
Sponsor Author

closed by #439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant