aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-03-23 10:13:48 +0800
committerGitHub <noreply@github.com>2026-03-23 10:13:48 +0800
commite51f217be7004067439bc65b146c90c531048084 (patch)
treed095d68e18fde49c92765a882cc9550645fa36f3 /test/functional/vimscript/executable_spec.lua
parentfae782557c8e042df2235633a3ac247276d3f4ff (diff)
downloadrneovim-e51f217be7004067439bc65b146c90c531048084.tar.gz
rneovim-e51f217be7004067439bc65b146c90c531048084.tar.bz2
rneovim-e51f217be7004067439bc65b146c90c531048084.zip
vim-patch:9.2.0223: Option handling for key:value suboptions is limited (#38426)
Problem: Option handling for key:value suboptions is limited Solution: Improve :set+=, :set-= and :set^= for options that use "key:value" pairs (Hirohito Higashi) For comma-separated options with P_COLON (e.g., diffopt, listchars, fillchars), :set += -= ^= now processes each comma-separated item individually instead of treating the whole value as a single string. For :set += and :set ^=: - A "key:value" item where the key already exists with a different value: the old item is replaced. - An exact duplicate item is left unchanged. - A new item is appended (+=) or prepended (^=). For :set -=: - A "key:value" or "key:" item removes by key match regardless of value. - A non-colon item removes by exact match. This also handles multiple non-colon items (e.g., :set diffopt-=filler,internal) by processing each item individually, making the behavior order-independent. Previously, :set += simply appended the value, causing duplicate keys to accumulate. fixes: vim/vim#18495 closes: vim/vim#19783 https://github.com/vim/vim/commit/e2f4e18437074868d89ed5c368af8c55ddc394e1 Co-authored-by: Hirohito Higashi <h.east.727@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions