":botright split" create window with invalid size when there is only a few spaces.
Steps to reproduce:
$ vim -u NONE -N
:vsplit
:while 1 | split | endwhile
:quit
:botright split
:echo winheight(0)
11 (actual height is 2 or 3)
o<CR><CR><CR><CR><CR><CR><CR><CR><CR><CR><CR>.... (editing buffer may cause crash)
Vim: Caught deadly signal SEGV
It is same with ":botright vsplit"
$ vim -u NONE -N
:split
:while 1 | vsplit | endwhile
:quit
:botright vsplit
:echo winheight(0)
40 (actual width is 2 or 3)
Please check the attached patch.
--
Yukihiro Nakadaira -
yukihiro....@gmail.com