-
Notifications
You must be signed in to change notification settings - Fork 177
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: incorrect height of preview (type=main) #468
Comments
@b1nhack, can you check it for yourself? |
I also have an issue with the window separator. When the preview window type is set to 'main' and a winbar is present, the size calculation for the preview window becomes problematic, causing it to overlap the window separator. When the type is 'main,' the preview maybe implemented as a fixed-size floating window, but the calculation for this window ignores the winbar, leading to the issue. |
There's another issue: when the type is set to 'main', the floating window does not override the default winblend setting. The desired effect is for the preview window to be completely opaque, making it look like it is previewing in the original window. |
ty :) |
@b1nhack just also changed the default winblend |
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
MacOS 14.5
Describe the bug
There is an bug related to the winbar when calculating the window height. The window must be one line less in height, otherwise it overlaps with the win separator.
Screen.Recording.2024-06-02.at.08.56.43.mov.mp4
If I change the return value of the parent_size function then the problem goes away:
Fix solves this:
Screen.Recording.2024-06-02.at.09.13.23.mov.mp4
Please tell me how I can find out the correct height required for the preview window?
Steps To Reproduce
Expected Behavior
The window divider should not be overlapped by the preview window.
Repro
The text was updated successfully, but these errors were encountered: