From 5df4fdf253f9c9cc35f9f5f16c6d0ba9d87b4c71 Mon Sep 17 00:00:00 2001 From: Famiu Haque Date: Sun, 8 Oct 2023 22:13:15 +0600 Subject: refactor(options)!: make OptionSet `v:` values use typval BREAKING CHANGE: This breaks the OptionSet autocommand, as the `v:` values associated with it (`v:option_new`, `v:option_old`, `v:option_oldlocal` and `v:option_oldglobal`) are now the same type as the option, instead of all option values being converted to strings. --- runtime/doc/news.txt | 4 ++++ runtime/doc/vim_diff.txt | 3 +++ 2 files changed, 7 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 3098cc0fb7..0becf7ac6d 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -71,6 +71,10 @@ The following changes may require adaptations in user config or plugins. defined by LSP, and hence previously parsed snippets might now be considered invalid input. +• |OptionSet| autocommand args |v:option_new|, |v:option_old|, + |v:option_oldlocal|, |v:option_oldglobal| now have the type of the option + instead of always being strings. + ============================================================================== NEW FEATURES *news-features* diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index d000d7c35c..7d0047bb1d 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -379,6 +379,9 @@ UI/Display: Variables: |v:progpath| is always absolute ("full") |v:windowid| is always available (for use by external UIs) + |OptionSet| autocommand args |v:option_new|, |v:option_old|, + |v:option_oldlocal|, |v:option_oldglobal| have the type of the option + instead of always being strings. Vimscript: |:redir| nested in |execute()| works. -- cgit