diff options
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 |