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

Fix terminal going offscreen in neovide in top/bottom/fullscreen #17

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

dpi0
Copy link
Contributor

@dpi0 dpi0 commented Sep 26, 2024

When using neovide and using the top/bottom/fullscreen options, by default the terminal window goes offscreen. When a width of 1 or 100% is used with right/center it also goes offscreen.

A simple solution was to subtract width_padding from each position's width.

Fixes #3

@dpi0 dpi0 force-pushed the bugfix/neovide-terminal-goes-offscreen branch from 6962317 to 3e8cef4 Compare September 26, 2024 14:23
lua/neoterm.lua Outdated Show resolved Hide resolved
Copy link
Owner

@itmecho itmecho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for sorting that =]

@itmecho itmecho merged commit 23a7801 into itmecho:main Sep 27, 2024
1 check passed
@dpi0 dpi0 mentioned this pull request Sep 27, 2024
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

Successfully merging this pull request may close these issues.

Neoterm in vertical mode being off-screen in neovide GUI
2 participants