kevinhwang91 / rnvimr

Make Ranger running in a floating window to communicate with Neovim via RPC
BSD 3-Clause "New" or "Revised" License
800 stars 17 forks source link

s:reopen_win() method will trigger my X shortcut key #140

Closed 178me closed 1 year ago

178me commented 1 year ago

Ranger

Python

Pynvim

Ueberzug (optional)

RPC

**Describe the bug**
s:reopen_win() method will trigger my X shortcut key

**To Reproduce using `nvim -u mini.vim`**

Example:
`cat mini.vim`
```vim
" use your plugin manager, here is `vim-plug`
call plug#begin('~/.config/nvim/plugged')
Plug 'kevinhwang91/rnvimr'
let g:rnvimr_vanilla = 1
tnoremap <silent> <M-i> <C-\><C-n>:RnvimrResize<CR>
nnoremap <silent> <M-o> :RnvimrToggle<CR>
tnoremap <silent> <M-o> <C-\><C-n>:RnvimrToggle<CR>
call plug#end()

Steps to reproduce the behavior:

  1. first open ranger
  2. toggle close
  3. toggle open

Expected behavior Do not trigger shortcut key

Screenshots image

Additional context After troubleshooting, here is the shortcut key that let me trigger X image I don't know what he can do

kevinhwang91 commented 1 year ago

What's the first char of the fired key sequence?

178me commented 1 year ago

X

kevinhwang91 commented 1 year ago

Reproduced.

kevinhwang91 commented 1 year ago

The culprit is that <Nul> become 0x80 0xff 0x58.

178me commented 1 year ago

It looks like I thought. Thank you very much for your update