kassio / neoterm

Wrapper of some vim/neovim's :terminal functions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Topen resizes vertically as well on vertical splits

frm opened this issue · comments

You can see the problem here:

asciicast

I try to have a vertical split, but it resizes neovim vertically as well. It's been like this for a while now.

My configs to reproduce:

let g:neoterm_shell = "zsh"
let g:neoterm_default_mod="vertical"
let g:neoterm_size=40

I also tried adding the following, which didn't fix it:

let g:neoterm_fixedsize=40
let g:neoterm_autoscroll=1
let g:neoterm_autojump=1

If I set g:neoterm_size to 70 it doesn't happen anymore.

I was able to determine that this was introduced in 3974cf6.

Calling resize is assuming the mod is empty (or set to a horizontal split). Calling exec(l:mod . ' resize ' . g:neoterm_size) fixes it. I'll be opening a PR with that change.