neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 2cc64dca9242ffd887ae61dd89e59d9a0ce17b98
parent 249cb8345d6e2f9986ad1dfe42d9cde0f9ed7d6a
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Mon, 10 Oct 2022 23:46:34 +0800

fix: change did_emsg back to int

Diffstat:
Msrc/nvim/globals.h | 2+-
Msrc/nvim/message.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nvim/globals.h b/src/nvim/globals.h @@ -199,7 +199,7 @@ EXTERN dict_T vimvardict; // Dictionary with v: variables EXTERN dict_T globvardict; // Dictionary with g: variables /// g: value #define globvarht globvardict.dv_hashtab -EXTERN bool did_emsg; // set by emsg() when the message +EXTERN int did_emsg; // set by emsg() when the message // is displayed or thrown EXTERN bool called_vim_beep; // set if vim_beep() is called EXTERN bool did_emsg_syntax; // did_emsg set because of a diff --git a/src/nvim/message.c b/src/nvim/message.c @@ -658,7 +658,7 @@ static bool emsg_multiline(const char *s, bool multiline) // interrupt message). if (cause_errthrow(s, severe, &ignore)) { if (!ignore) { - did_emsg = true; + did_emsg++; } return true; } @@ -721,7 +721,7 @@ static bool emsg_multiline(const char *s, bool multiline) } else { flush_buffers(FLUSH_MINIMAL); // flush internal buffers } - did_emsg = true; // flag for DoOneCmd() + did_emsg++; // flag for DoOneCmd() } emsg_on_display = true; // remember there is an error message