mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 09:49:02 -06:00
fix(intro): crash on small screen #38397
This commit is contained in:
1 parent
bc00aec21c
commit
cd71221250
2 files changed
+15
-6
No files matched your search
+1
-1
@@ -4251,7 +4251,7 @@ void intro_message(bool colon)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*mesg != NUL) {
|
if (*mesg != NUL && row < Rows - 1) {
|
||||||
do_intro_line(row, mesg, colon, i < 3);
|
do_intro_line(row, mesg, colon, i < 3);
|
||||||
}
|
}
|
||||||
row++;
|
row++;
|
||||||
|
|||||||
@@ -1768,11 +1768,12 @@ describe('ui/builtin messages', function()
|
|||||||
-- ignore final whitespace inside string
|
-- ignore final whitespace inside string
|
||||||
-- luacheck: push ignore
|
-- luacheck: push ignore
|
||||||
eq(
|
eq(
|
||||||
[[--- Syntax items ---
|
t.dedent [[
|
||||||
vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vimCommentGroup,vimCommentString
|
--- Syntax items ---
|
||||||
match /\<endif\s\+".*$/ms=s+5,lc=5 contains=@vimCommentGroup,vimCommentString
|
vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vimCommentGroup,vimCommentString
|
||||||
match /\<else\s\+".*$/ms=s+4,lc=4 contains=@vimCommentGroup,vimCommentString
|
match /\<endif\s\+".*$/ms=s+5,lc=5 contains=@vimCommentGroup,vimCommentString
|
||||||
links to Comment]],
|
match /\<else\s\+".*$/ms=s+4,lc=4 contains=@vimCommentGroup,vimCommentString
|
||||||
|
links to Comment]],
|
||||||
exec_capture('syntax list vimComment')
|
exec_capture('syntax list vimComment')
|
||||||
)
|
)
|
||||||
-- luacheck: pop
|
-- luacheck: pop
|
||||||
@@ -2176,6 +2177,14 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
|
|||||||
assert_alive()
|
assert_alive()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it(':intro with small screen #38396', function()
|
||||||
|
screen:try_resize(80, 6)
|
||||||
|
feed(':intro<CR>')
|
||||||
|
screen:expect({ any = 'NVIM' })
|
||||||
|
feed('<CR>')
|
||||||
|
assert_alive()
|
||||||
|
end)
|
||||||
|
|
||||||
it('no wait return before delayed exception error message', function()
|
it('no wait return before delayed exception error message', function()
|
||||||
screen:try_resize(70, 7)
|
screen:try_resize(70, 7)
|
||||||
feed('ia<esc>:lua vim.cmd.quit()<CR>')
|
feed('ia<esc>:lua vim.cmd.quit()<CR>')
|
||||||
|
|||||||
Reference in new issue
Block a user