vim-patch:19be0eb: runtime(doc): :ownsyntax also resets 'spelloptions'

closes: vim/vim#15919

19be0eb7f0
This commit is contained in:
zeertzjq 2024-10-23 07:32:43 +08:00
parent c1330816dc
commit 4ad4225bdb

View File

@ -5472,7 +5472,8 @@ This will set the "w:current_syntax" variable to "foo". The value of
restoring "b:current_syntax", since the syntax files do set
"b:current_syntax". The value set by the syntax file is assigned to
"w:current_syntax".
Note: This resets the 'spell', 'spellcapcheck' and 'spellfile' options.
Note: This resets the 'spell', 'spellcapcheck', 'spellfile' and 'spelloptions'
options.
Once a window has its own syntax, syntax commands executed from other windows
on the same buffer (including :syntax clear) have no effect. Conversely,