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

[bug] when buftype=quickfix, vim-whick-key will change the window where cursor stays #200

Open
Freed-Wu opened this issue Aug 17, 2021 · 0 comments

Comments

@Freed-Wu
Copy link
Contributor

" $ uname -r
" 5.13.10-arch1-1
" $ has nvim
" ✓ nvim 0.5.0
" $ has python
" ✓ python 3.9.6
" $ cat test.vim
set runtimepath=$VIMRUNTIME
set runtimepath+=~/.local/share/nvim/repos/github.com/liuchengxu/vim-which-key
nnoremap <nowait> Z :<C-u>WhichKey 'Z'<CR>
setlocal buftype=quickfix
new
" $ vi -u test.vim

Screenshot from 2021-08-17 15-18-31
now cursor stays in the top window.

<C-W>j

Screenshot from 2021-08-17 15-18-34
now cusor stays in the bottom window.
Z
Screenshot from 2021-08-17 15-18-36
now cursor stays in a popup window.
<Esc>
Screenshot from 2021-08-17 15-18-41
now cursor don't return to the bottom window, it go to the top window.

it make some hotkey like ZZ close incorrect window.

I have test when the buftype is not quickfix (such as nofile, help) , the bug will not happen.

thanks.

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