vim-floaterm
vim-floaterm copied to clipboard
TUI shifted left inside floaterm
Before reporting
-
Please make sure you have searched through the F.A.Q. first.
-
Please make sure you are using the latest version of this plugin.
-
It's better to use English as it's more friendly to other non-Chinese native users.
Environment
If you are using vim(not neovim), fill in the following blanks
-
Output of
vim --version
: -
Platform:
- [x] Linux
- [ ] Mac OS X
- [ ] Windows
If you are using neovim, just run :checkhealth floaterm
and post the content
below.
floaterm: health#floaterm#check
common ~
- Platform: linux
- Nvim: NVIM v0.9.0-dev-672+g4876654d4c
- Plugin: 06c7398
terminal ~
- OK Terminal emulator is available
floating ~
- OK Floating window is available
Configurations related to vim-floaterm in vimrc(i.e. g:floaterm_xxx
):
vim.opt.sidescrolloff = 8
Describe your question, feature request, or bug.
Although it is previously previously discussed (#218, #96) that setting sidescrolloff
to a positive value will cause some TUI tools like lazygit
to shift left and this problem is considered solved, it still occurs to me when I call :FloatermPrev
or :FloatermNext
Steps to reproduce
Using the minimal vimrc
set sidescrolloff=8
Steps to reproduce the behavior:
- Enter
nvim
- In cmdline, call
:FloatermNew
- In cmdline, call
:FloatermHide
- In cmdline, call
:FloatermNew lazygit
- In cmdline, call
:FloatermPrev
- In cmdline, call
:FloatermNext
Actual behaviour
Lazygit TUI is shifted left.
Expected behaviour
TUI should not be shifted left
Screenshots(Optional, GIF is better)
https://user-images.githubusercontent.com/76579810/212462961-c12fa877-08a0-4b68-a112-b5bd09e40852.mp4