Mercurial > vim
diff src/globals.h @ 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 | 390dfc3e409b |
children | 6cdf55afaae9 |
line wrap: on
line diff
--- a/src/globals.h +++ b/src/globals.h @@ -977,7 +977,7 @@ EXTERN pos_T Insstart; // This is where 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(= IN /* * "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