diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-12-04 10:32:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-04 10:32:20 +0800 |
commit | a0dd663c2d321ce107aa07005aa01b9c341c5df2 (patch) | |
tree | 32295d58a80f90a2d3b1d66d9034c7bd2fc4a093 /src/nvim/option.c | |
parent | fba0562723a1af143c9e9509920d03d8231b8bf7 (diff) | |
parent | 9476dd2f923d9e5d86237836131f67024613308f (diff) | |
download | rneovim-a0dd663c2d321ce107aa07005aa01b9c341c5df2.tar.gz rneovim-a0dd663c2d321ce107aa07005aa01b9c341c5df2.tar.bz2 rneovim-a0dd663c2d321ce107aa07005aa01b9c341c5df2.zip |
Merge pull request #21279 from zeertzjq/vim-8.2.2182
vim-patch:8.2.{2182,2295,3265,3292}: search fixes
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index e67bacce61..b1feac7d1b 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -5147,6 +5147,20 @@ int fill_culopt_flags(char *val, win_T *wp) return OK; } +/// Get the value of 'magic' taking "magic_overruled" into account. +bool magic_isset(void) +{ + switch (magic_overruled) { + case OPTION_MAGIC_ON: + return true; + case OPTION_MAGIC_OFF: + return false; + case OPTION_MAGIC_NOT_SET: + break; + } + return p_magic; +} + /// Set the callback function value for an option that accepts a function name, /// lambda, et al. (e.g. 'operatorfunc', 'tagfunc', etc.) /// @return OK if the option is successfully set to a function, otherwise FAIL |