diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-10 21:22:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-10 21:22:22 +0800 |
commit | 8bdcd832ae225d7d479a7eb6ca89d097f44e80f7 (patch) | |
tree | 32e43f6d99abd369af2daecfbdfb9446c42e8fbc /src | |
parent | 8f3845cdb73f20b094389aefbf2dabca0344a017 (diff) | |
download | rneovim-8bdcd832ae225d7d479a7eb6ca89d097f44e80f7.tar.gz rneovim-8bdcd832ae225d7d479a7eb6ca89d097f44e80f7.tar.bz2 rneovim-8bdcd832ae225d7d479a7eb6ca89d097f44e80f7.zip |
refactor(globals.h): avoid confusing comment placement (#18066)
These comments were indented in Vim, but their indent was removed in
Nvim, causing them to be placed in a confusing place.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/globals.h | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 42a7fcc3ab..2b85b6a208 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -680,11 +680,8 @@ EXTERN bool cmd_silent INIT(= false); // don't echo the command line #define SEA_QUIT 2 // quit editing the file #define SEA_RECOVER 3 // recover the file -EXTERN int swap_exists_action INIT(= SEA_NONE); -// For dialog when swap file already -// exists. -EXTERN bool swap_exists_did_quit INIT(= false); -// Selected "quit" at the dialog. +EXTERN int swap_exists_action INIT(= SEA_NONE); ///< For dialog when swap file already exists. +EXTERN bool swap_exists_did_quit INIT(= false); ///< Selected "quit" at the dialog. EXTERN char_u IObuff[IOSIZE]; ///< Buffer for sprintf, I/O, etc. EXTERN char_u NameBuff[MAXPATHL]; ///< Buffer for expanding file names @@ -737,15 +734,11 @@ EXTERN reg_extmatch_T *re_extmatch_in INIT(= NULL); // Set by vim_regexec() to store \z\(...\) matches EXTERN reg_extmatch_T *re_extmatch_out INIT(= NULL); -EXTERN bool did_outofmem_msg INIT(= false); -// set after out of memory msg -EXTERN bool did_swapwrite_msg INIT(= false); -// set after swap write error msg -EXTERN int global_busy INIT(= 0); // set when :global is executing -EXTERN bool listcmd_busy INIT(= false); // set when :argdo, :windo or - // :bufdo is executing -EXTERN bool need_start_insertmode INIT(= false); -// start insert mode soon +EXTERN bool did_outofmem_msg INIT(= false); ///< set after out of memory msg +EXTERN bool did_swapwrite_msg INIT(= false); ///< set after swap write error msg +EXTERN int global_busy INIT(= 0); ///< set when :global is executing +EXTERN bool listcmd_busy INIT(= false); ///< set when :argdo, :windo or :bufdo is executing +EXTERN bool need_start_insertmode INIT(= false); ///< start insert mode soon #define MODE_MAX_LENGTH 4 // max mode length returned in get_mode() // including the final NUL character @@ -770,8 +763,7 @@ EXTERN bool g_tag_at_cursor INIT(= false); // whether the tag command comes EXTERN int replace_offset INIT(= 0); // offset for replace_push() -EXTERN char_u *escape_chars INIT(= (char_u *)" \t\\\"|"); -// need backslash in cmd line +EXTERN char_u *escape_chars INIT(= (char_u *)" \t\\\"|"); // need backslash in cmd line EXTERN int keep_help_flag INIT(= false); // doing :ta from help file |