diff options
author | Famiu Haque <famiuhaque@proton.me> | 2023-10-13 20:16:15 +0600 |
---|---|---|
committer | Famiu Haque <famiuhaque@proton.me> | 2023-10-17 00:08:47 +0600 |
commit | af010e23f38a23bb74ea5b61e1b1a05e76410b5f (patch) | |
tree | 764d6ad85e652987818ec904a994d97eb398d0af /src/nvim/globals.h | |
parent | 526234cf567a5a9cb0833fb05ef23075d98c2f3f (diff) | |
download | rneovim-af010e23f38a23bb74ea5b61e1b1a05e76410b5f.tar.gz rneovim-af010e23f38a23bb74ea5b61e1b1a05e76410b5f.tar.bz2 rneovim-af010e23f38a23bb74ea5b61e1b1a05e76410b5f.zip |
refactor(options): rename `empty_option` to `empty_string_option`
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r-- | src/nvim/globals.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index d462c83710..a719fedb22 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -789,10 +789,11 @@ EXTERN char *escape_chars INIT(= " \t\\\"|"); // need backslash in cmd line EXTERN bool keep_help_flag INIT(= false); // doing :ta from help file -// When a string option is NULL (which only happens in out-of-memory -// situations), it is set to empty_option, to avoid having to check for NULL -// everywhere. -EXTERN char *empty_option INIT(= ""); +// When a string option is NULL (which only happens in out-of-memory situations), it is set to +// empty_string_option, to avoid having to check for NULL everywhere. +// +// TODO(famiu): Remove this when refcounted strings are used for string options. +EXTERN char *empty_string_option INIT(= ""); EXTERN bool redir_off INIT(= false); // no redirection for a moment EXTERN FILE *redir_fd INIT(= NULL); // message redirection file |