diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-07 20:01:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-07 20:01:16 +0100 |
commit | 249591057b4840785c50e41dd850efb8a8faf435 (patch) | |
tree | e9ba171529cf753e7aab0ec9adf5be3fedc17d00 /src/globals.h | |
parent | 9ff7d717aa3176de5c61de340deb93f41c7780fc (diff) |
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/globals.h')
-rw-r--r-- | src/globals.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/globals.h b/src/globals.h index da1ff76391..52b4c053f0 100644 --- a/src/globals.h +++ b/src/globals.h @@ -977,7 +977,7 @@ EXTERN pos_T Insstart; // This is where the latest EXTERN pos_T Insstart_orig; /* - * Stuff for VREPLACE mode. + * Stuff for MODE_VREPLACE state. */ EXTERN int orig_line_count INIT(= 0); // Line count when "gR" started EXTERN int vr_lines_changed INIT(= 0); // #Lines changed by "gR" so far @@ -1095,14 +1095,14 @@ EXTERN guicolor_T xim_bg_color INIT(= INVALCOLOR); /* * "State" is the main state of Vim. * There are other variables that modify the state: - * "Visual_mode" When State is NORMAL or INSERT. - * "finish_op" When State is NORMAL, after typing the operator and before - * typing the motion command. + * "Visual_mode" When State is MODE_NORMAL or MODE_INSERT. + * "finish_op" When State is MODE_NORMAL, after typing the operator and + * before typing the motion command. * "motion_force" Last motion_force from do_pending_operator() * "debug_mode" Debug mode. */ -EXTERN int State INIT(= NORMAL); // This is the current state of the - // command interpreter. +EXTERN int State INIT(= MODE_NORMAL); + #ifdef FEAT_EVAL EXTERN int debug_mode INIT(= FALSE); #endif |