aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@proton.me>2023-10-08 22:13:15 +0600
committerFamiu Haque <famiuhaque@proton.me>2023-10-17 00:08:47 +0600
commit5df4fdf253f9c9cc35f9f5f16c6d0ba9d87b4c71 (patch)
tree526161313a7690d2c944c7449e183e3a26f2d1c5 /runtime
parent93b9c889465ee6a55e71c1fd681c1c6b1d5ed060 (diff)
downloadrneovim-5df4fdf253f9c9cc35f9f5f16c6d0ba9d87b4c71.tar.gz
rneovim-5df4fdf253f9c9cc35f9f5f16c6d0ba9d87b4c71.tar.bz2
rneovim-5df4fdf253f9c9cc35f9f5f16c6d0ba9d87b4c71.zip
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.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/news.txt4
-rw-r--r--runtime/doc/vim_diff.txt3
2 files changed, 7 insertions, 0 deletions
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.