diff options
author | Daniel Hahler <git@thequod.de> | 2019-10-19 23:45:27 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-10-19 14:45:27 -0700 |
commit | 93fe30593b47fe98a31c6bb67f4d6effb8b725fe (patch) | |
tree | efca9db5851194542c6e1dc039861c2577d40717 /src/nvim/message.c | |
parent | 029b828693dbf774e86b6478b5744686d4cdf747 (diff) | |
download | rneovim-93fe30593b47fe98a31c6bb67f4d6effb8b725fe.tar.gz rneovim-93fe30593b47fe98a31c6bb67f4d6effb8b725fe.tar.bz2 rneovim-93fe30593b47fe98a31c6bb67f4d6effb8b725fe.zip |
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
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index b518664f32..03cbe8ec18 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -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) { |