diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-03 19:25:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 19:25:03 +0800 |
commit | c57e133e50b9f3ccd9a3d73f4e7e3e7281797000 (patch) | |
tree | e7052562476fbe38f3bfa5d034484c4d149afc7b /test/functional/ui/statusline_spec.lua | |
parent | 5ee56f95c7c4aa588b37fec297e21a040a8d2367 (diff) | |
download | rneovim-c57e133e50b9f3ccd9a3d73f4e7e3e7281797000.tar.gz rneovim-c57e133e50b9f3ccd9a3d73f4e7e3e7281797000.tar.bz2 rneovim-c57e133e50b9f3ccd9a3d73f4e7e3e7281797000.zip |
fix(ui): set redraw_cmdline when setting window height (#19630)
Diffstat (limited to 'test/functional/ui/statusline_spec.lua')
-rw-r--r-- | test/functional/ui/statusline_spec.lua | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/functional/ui/statusline_spec.lua b/test/functional/ui/statusline_spec.lua index 69a2d2f4ed..f3735c8e4c 100644 --- a/test/functional/ui/statusline_spec.lua +++ b/test/functional/ui/statusline_spec.lua @@ -407,3 +407,40 @@ it('statusline does not crash if it has Arabic characters #19447', function() command('redraw!') assert_alive() end) + +it('statusline is redrawn with :resize from <Cmd> mapping #19629', function() + clear() + local screen = Screen.new(40, 8) + screen:set_default_attr_ids({ + [0] = {bold = true, foreground = Screen.colors.Blue}, -- NonText + [1] = {bold = true, reverse = true}, -- StatusLine + }) + screen:attach() + exec([[ + set laststatus=2 + nnoremap <Up> <cmd>resize -1<CR> + nnoremap <Down> <cmd>resize +1<CR> + ]]) + feed('<Up>') + screen:expect([[ + ^ | + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {1:[No Name] }| + | + | + ]]) + feed('<Down>') + screen:expect([[ + ^ | + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {1:[No Name] }| + | + ]]) +end) |