aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/cmdline_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-26 13:30:19 +0200
committerGitHub <noreply@github.com>2022-09-26 13:30:19 +0200
commitc7e74f78896ffe933e9e411563eaaaacca2622ce (patch)
tree55ad87ed71653c79d7a562733e53bde0011cd2ba /test/functional/ui/cmdline_spec.lua
parentc815aadfccd6bada47ecfb09fe188ee7f7c5caf3 (diff)
parentbe72af2f9b6aa9ff57ef21eb4e517a74b7c2a2da (diff)
downloadrneovim-c7e74f78896ffe933e9e411563eaaaacca2622ce.tar.gz
rneovim-c7e74f78896ffe933e9e411563eaaaacca2622ce.tar.bz2
rneovim-c7e74f78896ffe933e9e411563eaaaacca2622ce.zip
Merge pull request #20351 from bfredl/cmdfix2
fix(cmdline): don't send invalid cursor with incsearch and cmdheight=0
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r--test/functional/ui/cmdline_spec.lua42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua
index 3669352901..845291b2eb 100644
--- a/test/functional/ui/cmdline_spec.lua
+++ b/test/functional/ui/cmdline_spec.lua
@@ -1196,4 +1196,46 @@ describe('cmdheight=0', function()
{1:~ }|
]]}
end)
+
+ it('with multigrid', function()
+ clear{args={'--cmd', 'set cmdheight=0'}}
+ screen:attach{ext_multigrid=true}
+ screen:expect{grid=[[
+ ## grid 1
+ [2:-------------------------]|
+ [2:-------------------------]|
+ [2:-------------------------]|
+ [2:-------------------------]|
+ [2:-------------------------]|
+ ## grid 2
+ ^ |
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ ## grid 3
+ ]], win_viewport={
+ [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1};
+ }}
+
+ feed '/p'
+ screen:expect{grid=[[
+ ## grid 1
+ [2:-------------------------]|
+ [2:-------------------------]|
+ [2:-------------------------]|
+ [2:-------------------------]|
+ [3:-------------------------]|
+ ## grid 2
+ |
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ ## grid 3
+ /p^ |
+ ]], win_viewport={
+ [2] = {win = {id = 1000}, topline = 0, botline = 2, curline = 0, curcol = 0, linecount = 1};
+ }}
+ end)
end)