mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
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:

committed by
Justin M. Keyes

parent
029b828693
commit
93fe30593b
@@ -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) {
|
||||
|
Reference in New Issue
Block a user