diff options
| author | Famiu Haque <famiuhaque@proton.me> | 2024-10-25 20:10:40 +0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-25 07:10:40 -0700 |
| commit | b922b7d6d7889cce863540df7b0da7d512f8a2a1 (patch) | |
| tree | d1b8fdd604c7ddf3d0d301ddc9beccfff6030f18 /runtime/doc/vim_diff.txt | |
| parent | 01739d4673eecad0631f874ba279c5c362aa1766 (diff) | |
| download | rneovim-b922b7d6d7889cce863540df7b0da7d512f8a2a1.tar.gz rneovim-b922b7d6d7889cce863540df7b0da7d512f8a2a1.tar.bz2 rneovim-b922b7d6d7889cce863540df7b0da7d512f8a2a1.zip | |
refactor(options)!: use OptVal for option defaults #26691
Problem: We use `void *` for option default values, which is confusing and can cause problems with type-correctness. It also doesn't accomodate for multitype options. On top of that, it also leads to default boolean option values not behaving correctly on big endian systems.
Solution: Use `OptVal` for option default values.
BREAKING CHANGE:
- `:set {option}<` removes the local value for all global-local options instead of just string global-local options.
- `:setlocal {option}<` copies the global value to the local value for number and boolean global-local options instead of removing the local value.
Diffstat (limited to 'runtime/doc/vim_diff.txt')
| -rw-r--r-- | runtime/doc/vim_diff.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 94c0578872..d20f1a511d 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -339,10 +339,8 @@ Normal commands: Options: -Local values for global-local number/boolean options are unset when the option -is set without a scope (e.g. by using |:set|), similarly to how global-local -string options work. - +- `:set {option}<` removes local value for all |global-local| options. +- `:setlocal {option}<` copies global value to local value for all options. - 'autoread' works in the terminal (if it supports "focus" events) - 'cpoptions' flags: |cpo-_| - 'diffopt' "linematch" feature |