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] cannot work in help window #36

Open
Freed-Wu opened this issue Aug 29, 2021 · 1 comment
Open

[bug] cannot work in help window #36

Freed-Wu opened this issue Aug 29, 2021 · 1 comment

Comments

@Freed-Wu
Copy link

" $ uname -r
" 5.13.13-arch1-1
" $ has nvim
" ✓ nvim 0.5.0
" $ cat test.vim
set runtimepath=$VIMRUNTIME
set runtimepath+=~/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release
help
" $ vi -u test.vim

Press Y or yy, the yanked region will not be highlighted.

@Freed-Wu
Copy link
Author

I take a look at the code. https://github.com/neoclide/coc-yank/blob/master/src/index.ts#L33 return due to doc.attached is false. Even if we skip it. we will get wrong start character due to https://github.com/neoclide/coc-yank/blob/master/src/index.ts#L52 doc.getline() still return "".

I think one temporary solution is just use https://neovim.io/doc/user/lua.html#vim.highlight to replace it.

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