Mercurial > vim
diff src/main.c @ 28773:d770568e6c98 v8.2.4911
patch 8.2.4911: the mode #defines are not clearly named
Commit: https://github.com/vim/vim/commit/249591057b4840785c50e41dd850efb8a8faf435
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 7 20:01:16 2022 +0100
patch 8.2.4911: the mode #defines are not clearly named
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 May 2022 21:15:06 +0200 |
parents | 4dcccb2673fe |
children | 6cdf55afaae9 |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -1181,7 +1181,7 @@ main_loop( // exits while Vim is running in a console. if (!cmdwin && !noexmode && SETJMP(x_jump_env)) { - State = NORMAL; + State = MODE_NORMAL; VIsual_active = FALSE; got_int = TRUE; need_wait_return = FALSE; @@ -1239,7 +1239,7 @@ main_loop( // Typed two CTRL-C in a row: go back to ex mode as if "Q" was // used and keep "got_int" set, so that it aborts ":g". exmode_active = EXMODE_NORMAL; - State = NORMAL; + State = MODE_NORMAL; } else if (!global_busy || !exmode_active) {