According to :help dictionary, when this option is empty or an entry "spell" is present, and spell checking is enabled, words in the word lists for the currently active 'spelllang' are used.
While trying to add tests for insert completion using CTRL-X CTRL-K with empty 'dictionary' and spell check enable, I noticed that spell regions are ignored.
Steps to reproduce
The following command with US English completes as expected to "A theater":
$ vim --clean -c 'set spell spelllang=en_us' -c 'call feedkeys("iA theat\<c-x>\<c-k>")'
However, the following command completes incorrectly to 'A theater'.
I expected instead 'A theatre' since the British English spell checker is enabled:
$ vim --clean -c 'set spell spelllang=en_gb' -c 'call feedkeys("iA theat\<c-x>\<c-k>")'
It looks as if the spelling region is ignored.
Environment
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Closed #7025 as completed via e98fb64.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()