mirror of
https://github.com/neovim/neovim.git
synced 2025-11-14 06:18:50 +00:00
vim-patch:9.1.0990: Inconsistent behavior when changing cmdheight (#31830)
Problem: Inconsistent behavior when changing cmdheight by resizing the
topframe through wincmds and dragging laststatus. Changing
cmdheight by resizing the topframe does not trigger OptionSet.
Solution: Consolidate logic for changing the cmdheight, set the option
value to handle side-effects (Luuk van Baal)
e15cbc1af4
vim-patch:9.0.0187: command line height changes when maximizing window height
Problem: Command line height changes when maximizing window height.
Solution: Do not change the command line height. (closes vim/vim#10885)
96bde99bf8
This commit is contained in:
@@ -159,6 +159,52 @@ describe('cmdline', function()
|
||||
endfunc
|
||||
]])
|
||||
|
||||
feed(':resize -3<CR>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|*2
|
||||
{3:[No Name] }|
|
||||
|*4
|
||||
]])
|
||||
|
||||
-- :resize now also changes 'cmdheight' accordingly
|
||||
feed(':set cmdheight+=1<CR>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|
|
||||
{3:[No Name] }|
|
||||
|*5
|
||||
]])
|
||||
feed(':set cmdheight-=1<CR>')
|
||||
|
||||
-- using more space moves the status line up
|
||||
feed(':set cmdheight+=1<CR>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|
|
||||
{3:[No Name] }|
|
||||
|*5
|
||||
]])
|
||||
|
||||
-- reducing cmdheight moves status line down
|
||||
feed(':set cmdheight-=2<CR>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|*3
|
||||
{3:[No Name] }|
|
||||
|*3
|
||||
]])
|
||||
|
||||
-- reducing window size and then setting cmdheight
|
||||
feed(':resize -1<CR>')
|
||||
feed(':set cmdheight=1<CR>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|*5
|
||||
{3:[No Name] }|
|
||||
|
|
||||
]])
|
||||
|
||||
-- setting 'cmdheight' works after outputting two messages
|
||||
feed(':call EchoTwo()')
|
||||
screen:expect([[
|
||||
|
||||
Reference in New Issue
Block a user