mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
[release-0.4] ex_echo: fix check for got_int #11225
It needs to return to not output any remaining parts.
Followup to https://github.com/neovim/neovim/pull/10926
Ref: https://github.com/neovim/neovim/issues/10923
(cherry picked from commit 93fe30593b
)
This commit is contained in:
parent
327e8ddb18
commit
924fa143cc
@ -233,7 +233,10 @@ void msg_multiline_attr(const char *s, int attr, bool check_int)
|
||||
{
|
||||
const char *next_spec = s;
|
||||
|
||||
while (next_spec != NULL && (!check_int || !got_int)) {
|
||||
while (next_spec != NULL) {
|
||||
if (check_int && got_int) {
|
||||
return;
|
||||
}
|
||||
next_spec = strpbrk(s, "\t\n\r");
|
||||
|
||||
if (next_spec != NULL) {
|
||||
|
@ -1125,7 +1125,7 @@ aliquip ex ea commodo consequat.]])
|
||||
|
||||
it('can be quit', function()
|
||||
screen:try_resize(25,5)
|
||||
feed(':echon join(map(range(0, &lines*2), "v:val"), "\\n")<cr>')
|
||||
feed(':echon join(map(range(0, &lines*10), "v:val"), "\\n")<cr>')
|
||||
screen:expect{grid=[[
|
||||
0 |
|
||||
1 |
|
||||
|
Loading…
Reference in New Issue
Block a user