diff options
author | Daniel Hahler <git@thequod.de> | 2019-09-03 11:57:14 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-09-04 10:50:26 +0200 |
commit | e867ac3e527e205416299faa28a74ca758cfc33b (patch) | |
tree | 03314560c5a12ea0ea780a924421b1bcbc264e4c /src | |
parent | 6434a0bf99d1733a295844813db201d533e65883 (diff) | |
download | rneovim-e867ac3e527e205416299faa28a74ca758cfc33b.tar.gz rneovim-e867ac3e527e205416299faa28a74ca758cfc33b.tar.bz2 rneovim-e867ac3e527e205416299faa28a74ca758cfc33b.zip |
Check got_int in msg_multiline_attr
Fixes quitting the pager using `q`.
Fixes https://github.com/neovim/neovim/issues/10923.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index ac731210d7..e21981ec90 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -227,7 +227,7 @@ void msg_multiline_attr(const char *s, int attr) { const char *next_spec = s; - while (next_spec != NULL) { + while (next_spec != NULL && !got_int) { next_spec = strpbrk(s, "\t\n\r"); if (next_spec != NULL) { |