mrjones2014 / smart-splits.nvim

🧠 Smart, seamless, directional navigation and resizing of Neovim + terminal multiplexer splits. Supports tmux, Wezterm, and Kitty. Think about splits in terms of "up/down/left/right".
MIT License
904 stars 38 forks source link

fix: Respect hidden statusline in window size calculation #110

Closed vimpostor closed 1 year ago

vimpostor commented 1 year ago

Previously the size calculation hardcoded subtracting 1 for the statusline. But this is not correct, if the user sets laststatus=0 for example.

Fix this by respecting the laststatus setting in the size calculation.

This problem was found in https://github.com/vimpostor/vim-tpipeline/issues/55