aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/globals.h
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-07-02 12:29:27 +0100
committerGitHub <noreply@github.com>2022-07-02 04:29:27 -0700
commited429c00d76414d07d7c7129f65ddf9be68e24f4 (patch)
tree62e78cec457de973a375872916f51b200a519f09 /src/nvim/globals.h
parent662681694bf2e30b1f33ad235274c82a334ff742 (diff)
downloadrneovim-ed429c00d76414d07d7c7129f65ddf9be68e24f4.tar.gz
rneovim-ed429c00d76414d07d7c7129f65ddf9be68e24f4.tar.bz2
rneovim-ed429c00d76414d07d7c7129f65ddf9be68e24f4.zip
refactor(fold): style #19175
* refactor(fold): update comment formatting * refactor(fold): use post-increment/decrement * refactor(fold): reduce scope of local variables * refactor(fold): use booleans
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r--src/nvim/globals.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h
index d2f56c739b..5c1d6867ce 100644
--- a/src/nvim/globals.h
+++ b/src/nvim/globals.h
@@ -224,7 +224,7 @@ EXTERN dict_T vimvardict; // Dictionary with v: variables
EXTERN dict_T globvardict; // Dictionary with g: variables
/// g: value
#define globvarht globvardict.dv_hashtab
-EXTERN int did_emsg; // set by emsg() when the message
+EXTERN bool did_emsg; // set by emsg() when the message
// is displayed or thrown
EXTERN bool called_vim_beep; // set if vim_beep() is called
EXTERN bool did_emsg_syntax; // did_emsg set because of a
@@ -274,11 +274,11 @@ EXTERN except_T *current_exception;
/// Set when a throw that cannot be handled in do_cmdline() must be propagated
/// to the cstack of the previously called do_cmdline().
-EXTERN int need_rethrow INIT(= false);
+EXTERN bool need_rethrow INIT(= false);
/// Set when a ":finish" or ":return" that cannot be handled in do_cmdline()
/// must be propagated to the cstack of the previously called do_cmdline().
-EXTERN int check_cstack INIT(= false);
+EXTERN bool check_cstack INIT(= false);
/// Number of nested try conditionals (across function calls and ":source"
/// commands).
@@ -725,8 +725,7 @@ EXTERN bool need_highlight_changed INIT(= true);
EXTERN FILE *scriptout INIT(= NULL); ///< Stream to write script to.
// volatile because it is used in a signal handler.
-EXTERN volatile int got_int INIT(= false); // set to true when interrupt
- // signal occurred
+EXTERN bool got_int INIT(= false); // set to true when interrupt signal occurred
EXTERN bool bangredo INIT(= false); // set to true with ! command
EXTERN int searchcmdlen; // length of previous search cmd
EXTERN int reg_do_extmatch INIT(= 0); // Used when compiling regexp: