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
This commit is contained in:
Daniel Hahler 2019-10-19 23:45:27 +02:00 committed by Justin M. Keyes
parent 029b828693
commit 93fe30593b
2 changed files with 5 additions and 2 deletions

View File

@ -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) {

View File

@ -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 |