diff options
author | Daniel Hahler <git@thequod.de> | 2019-09-04 13:30:11 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-09-04 13:30:11 +0200 |
commit | ac6fd11fa128b2a28611f54c478e84f43f728aea (patch) | |
tree | c2a6409f9b3ad5d5bbeb0caae67f85f5be38fb01 /src/nvim/message.c | |
parent | 4556bb90facae5af15ef329e2a63d9751d380db9 (diff) | |
download | rneovim-ac6fd11fa128b2a28611f54c478e84f43f728aea.tar.gz rneovim-ac6fd11fa128b2a28611f54c478e84f43f728aea.tar.bz2 rneovim-ac6fd11fa128b2a28611f54c478e84f43f728aea.zip |
only check got_int with ex_echo
Ref: https://github.com/neovim/neovim/pull/10926#discussion_r320706446
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index e21981ec90..b5a5f656a0 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -222,12 +222,12 @@ int msg_attr(const char *s, const int attr) } /// similar to msg_outtrans_attr, but support newlines and tabs. -void msg_multiline_attr(const char *s, int attr) +void msg_multiline_attr(const char *s, int attr, bool check_int) FUNC_ATTR_NONNULL_ALL { const char *next_spec = s; - while (next_spec != NULL && !got_int) { + while (next_spec != NULL && (!check_int || !got_int)) { next_spec = strpbrk(s, "\t\n\r"); if (next_spec != NULL) { @@ -306,7 +306,7 @@ bool msg_attr_keep(char_u *s, int attr, bool keep, bool multiline) s = buf; if (multiline) { - msg_multiline_attr((char *)s, attr); + msg_multiline_attr((char *)s, attr, false); } else { msg_outtrans_attr(s, attr); } |