diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-12 02:28:15 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-13 20:47:26 -0400 |
commit | e9804aead6adf1fb0e3d16d5544e82fc0e566890 (patch) | |
tree | ebfe852f4001cc5bcc7189479f2db4e542cae510 | |
parent | 07f6f12cf529da403ccb1f3df48d266fa2008db7 (diff) | |
download | rneovim-e9804aead6adf1fb0e3d16d5544e82fc0e566890.tar.gz rneovim-e9804aead6adf1fb0e3d16d5544e82fc0e566890.tar.bz2 rneovim-e9804aead6adf1fb0e3d16d5544e82fc0e566890.zip |
lint
-rw-r--r-- | src/nvim/ex_cmds.c | 18 | ||||
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
2 files changed, 10 insertions, 12 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index fde0abdd4b..6a0a08eee8 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -2439,16 +2439,14 @@ int do_ecmd( // BufLeave applies to the old buffer. cmdwin_type = 0; - /* - * Be careful: The autocommands may delete any buffer and change - * the current buffer. - * - If the buffer we are going to edit is deleted, give up. - * - If the current buffer is deleted, prefer to load the new - * buffer when loading a buffer is required. This avoids - * loading another buffer which then must be closed again. - * - If we ended up in the new buffer already, need to skip a few - * things, set auto_buf. - */ + // Be careful: The autocommands may delete any buffer and change + // the current buffer. + // - If the buffer we are going to edit is deleted, give up. + // - If the current buffer is deleted, prefer to load the new + // buffer when loading a buffer is required. This avoids + // loading another buffer which then must be closed again. + // - If we ended up in the new buffer already, need to skip a few + // things, set auto_buf. if (buf->b_fname != NULL) { new_name = vim_strsave(buf->b_fname); } diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 02bbc90858..c557bb2438 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -212,7 +212,7 @@ void do_exmode(int improved) while (exmode_active) { /* Check for a ":normal" command and no more characters left. */ if (ex_normal_busy > 0 && typebuf.tb_len == 0) { - exmode_active = FALSE; + exmode_active = 0; break; } msg_scroll = true; @@ -7307,7 +7307,7 @@ do_exedit( */ if (exmode_active && (eap->cmdidx == CMD_visual || eap->cmdidx == CMD_view)) { - exmode_active = FALSE; + exmode_active = 0; ex_pressedreturn = false; if (*eap->arg == NUL) { /* Special case: ":global/pat/visual\NLvi-commands" */ |