-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
screen*()
functions don't register floating windows
#19013
Comments
Is this related to your feature request in #19000? |
Implicitly related, yes. I've built a straightforward |
This may be impossible because AFAIK how floating windows are displayed depends on what UIs are attached. |
(Remember that Neovim's floating windows are very different from Vim's popups.) |
Although duplicating the code for finding mouse click position may make this work. |
This is sad. At least, this means a documentation of these functions are not really up to date. All of them have something like
And this is better :) |
there is also |
I just noticed this comment: Lines 6854 to 6857 in cd9e08c
|
I tried incorporating it and did in fact succeed to get data from both main window and floating ones. But not so smartly: by looping |
Neovim version (nvim -v)
NVIM v0.8.0-dev+441-ge651ae586
Vim (not Nvim) behaves the same?
Yes, with popup windows (8.2.5046)
Operating system/version
EndeavourOS 5.18.3-arch1-1
Terminal name/version
xfce4-terminal 1.0.4 (Xfce 4.16)
$TERM environment variable
xterm-256color
Installation
appimage
How to reproduce the issue
nvim -u init-floating.lua
. Should result in Neovim instance withaaaaaaaaaa
in floating window in top left corner.:lua print(vim.inspect(vim.fn.screenstring(1, 1)))
. It should be"a"
, but it is" "
, which is a character under floating window. The same effect is forscreenchar()
,screenchars()
, andscreenattr()
.On the other hand, Vim behaves as expected with its popup windows. Use equivalent 'init-popup.vim' file:
Expected behavior
All
screen*()
functions respect floating windows, i.e. use them during computation of "what is displayed on the screen".Actual behavior
neovim-issue_screenstring.mp4
The text was updated successfully, but these errors were encountered: