diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-10-30 20:06:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 20:06:57 +0100 |
commit | 6d1a2f2c3c51560555ea6f7867273635d07eb287 (patch) | |
tree | b1a29752324ea1f455a77b5b46e545bc372e5c4b /src/nvim/option.h | |
parent | 788bc12a6f4c5a4627cbc75a2f539bfc622384a2 (diff) | |
parent | e19cc9c9b715d8171f7940632b8855104b5290b6 (diff) | |
download | rneovim-6d1a2f2c3c51560555ea6f7867273635d07eb287.tar.gz rneovim-6d1a2f2c3c51560555ea6f7867273635d07eb287.tar.bz2 rneovim-6d1a2f2c3c51560555ea6f7867273635d07eb287.zip |
Merge pull request #25674 from famiu/refactor/options/unify_string_options
refactor(options): unify `set_option` and `set_string_option`
Diffstat (limited to 'src/nvim/option.h')
-rw-r--r-- | src/nvim/option.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/option.h b/src/nvim/option.h index 7bc379c843..9e936f39ca 100644 --- a/src/nvim/option.h +++ b/src/nvim/option.h @@ -56,6 +56,7 @@ typedef struct vimoption { /// cmdline. Only useful for string options. opt_expand_cb_T opt_expand_cb; + // TODO(famiu): Use OptVal for def_val. void *def_val; ///< default values for variable (neovim!!) LastSet last_set; ///< script in which the option was last set } vimoption_T; @@ -72,6 +73,7 @@ enum { /// When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global /// values, get local value. typedef enum { + // TODO(famiu): See if `OPT_FREE` is really necessary and remove it if not. OPT_FREE = 0x01, ///< Free old value if it was allocated. OPT_GLOBAL = 0x02, ///< Use global value. OPT_LOCAL = 0x04, ///< Use local value. |