bug: signature doesn't work when using the same buffer in different windows #593
Closed
3 tasks done
Labels
bug
Something isn't working
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.9.2-dev-a3889e7
Operating system/version
Ubuntu 22.04.1 LTS
Describe the bug
When I split a buffer to two windows the signature doesn't work on the right window but works on the left window.
I did some debugging,
get_char
function inlsp/signature
gets the char by using thebufwinid
.bufwinid
doesn't return the active window if the buffer exists in 2 windows therefore it doesn't work for the second window.I changed
vim.fn.bufwinid(buf)
tovim.api.nvim_get_current_win()
and it fixes the problem, but it doesn't takebuf
in account.Steps To Reproduce
Expected Behavior
Signature feature should work on the 2nd window as well
Repro
The text was updated successfully, but these errors were encountered: