summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-05-07 20:01:16 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-07 20:01:16 +0100
commit249591057b4840785c50e41dd850efb8a8faf435 (patch)
treee9ba171529cf753e7aab0ec9adf5be3fedc17d00 /src/ex_docmd.c
parent9ff7d717aa3176de5c61de340deb93f41c7780fc (diff)
downloadvim-git-249591057b4840785c50e41dd850efb8a8faf435.tar.gz
patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911
Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 46f2b221b..7633d6bf8 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -476,7 +476,7 @@ do_exmode(
exmode_active = EXMODE_VIM;
else
exmode_active = EXMODE_NORMAL;
- State = NORMAL;
+ State = MODE_NORMAL;
may_trigger_modechanged();
// When using ":global /pat/ visual" and then "Q" we return to continue
@@ -8328,7 +8328,7 @@ ex_redraw(exarg_T *eap)
need_wait_return = FALSE;
// When invoked from a callback or autocmd the command line may be active.
- if (State & CMDLINE)
+ if (State & MODE_CMDLINE)
redrawcmdline();
out_flush();
@@ -8676,7 +8676,7 @@ ex_startinsert(exarg_T *eap)
// Ignore the command when already in Insert mode. Inserting an
// expression register that invokes a function can do this.
- if (State & INSERT)
+ if (State & MODE_INSERT)
return;
if (eap->cmdidx == CMD_startinsert)