mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
4352d41db0
commit
f719247118
@ -5546,10 +5546,11 @@ void command_height(void)
|
|||||||
* p_ch was changed in another tab page. */
|
* p_ch was changed in another tab page. */
|
||||||
curtab->tp_ch_used = p_ch;
|
curtab->tp_ch_used = p_ch;
|
||||||
|
|
||||||
/* Find bottom frame with width of screen. */
|
// Find bottom frame with width of screen.
|
||||||
frp = lastwin->w_frame;
|
frp = lastwin_nofloating()->w_frame;
|
||||||
while (frp->fr_width != Columns && frp->fr_parent != NULL)
|
while (frp->fr_width != Columns && frp->fr_parent != NULL) {
|
||||||
frp = frp->fr_parent;
|
frp = frp->fr_parent;
|
||||||
|
}
|
||||||
|
|
||||||
/* Avoid changing the height of a window with 'winfixheight' set. */
|
/* Avoid changing the height of a window with 'winfixheight' set. */
|
||||||
while (frp->fr_prev != NULL && frp->fr_layout == FR_LEAF
|
while (frp->fr_prev != NULL && frp->fr_layout == FR_LEAF
|
||||||
|
@ -1019,6 +1019,13 @@ describe('floating windows', function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('does not crash when set cmdheight #9680', function()
|
||||||
|
local buf = meths.create_buf(false,false)
|
||||||
|
meths.open_win(buf, false, 20, 2, {relative='editor', row=2, col=5})
|
||||||
|
command("set cmdheight=2")
|
||||||
|
eq(1, meths.eval('1'))
|
||||||
|
end)
|
||||||
|
|
||||||
describe('and completion', function()
|
describe('and completion', function()
|
||||||
before_each(function()
|
before_each(function()
|
||||||
local buf = meths.create_buf(false,false)
|
local buf = meths.create_buf(false,false)
|
||||||
|
Loading…
Reference in New Issue
Block a user