aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/options.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2023-12-15 16:35:55 -0600
committerGitHub <noreply@github.com>2023-12-15 16:35:55 -0600
commitf4f7e294695abe7837af62b68564114de7abd0b4 (patch)
treeff2e0e85746cc365db242b2f8d5cc6a36ad7d7fa /runtime/lua/vim/_meta/options.lua
parent0d26d192d82716a72f5216cafd675a68c6e93580 (diff)
downloadrneovim-f4f7e294695abe7837af62b68564114de7abd0b4.tar.gz
rneovim-f4f7e294695abe7837af62b68564114de7abd0b4.tar.bz2
rneovim-f4f7e294695abe7837af62b68564114de7abd0b4.zip
refactor(defaults): always set options, even if value hasn't changed (#26595)
Comparing against the old value before setting matched the original C implementation, but there is no reason to use this restriction. In particular, this inhibits using OptionSet to determine when the option was set. If users need to handle a case where the option _changed_, it is easy to do so in an OptionSet autocommand using v:option_new and v:option_old (and friends).
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
0 files changed, 0 insertions, 0 deletions