Patch 8.2.1754
Problem:    Completion with spell checking not tested.
Solution:   Add a test case. (Dominique Pellé, closes #7024)
Files:      src/testdir/test_spell.vim


*** ../vim-8.2.1753/src/testdir/test_spell.vim  2020-09-11 18:11:45.098325224 
+0200
--- src/testdir/test_spell.vim  2020-09-27 13:54:57.363292386 +0200
***************
*** 120,125 ****
--- 120,162 ----
    set spell&
  endfunc
  
+ func Test_spelllang_inv_region()
+   set spell spelllang=en_xx
+   let messages = GetMessages()
+   call assert_equal('Warning: region xx not supported', messages[-1])
+   set spell& spelllang&
+ endfunc
+ 
+ func Test_compl_with_CTRL_X_CTRL_K_using_spell()
+   " When spell checking is enabled and 'dictionary' is empty,
+   " CTRL-X CTRL-K in insert mode completes using the spelling dictionary.
+   new
+   set spell spelllang=en dictionary=
+ 
+   set ignorecase
+   call feedkeys("Senglis\<c-x>\<c-k>\<esc>", 'tnx')
+   call assert_equal(['English'], getline(1, '$'))
+   call feedkeys("SEnglis\<c-x>\<c-k>\<esc>", 'tnx')
+   call assert_equal(['English'], getline(1, '$'))
+ 
+   set noignorecase
+   call feedkeys("Senglis\<c-x>\<c-k>\<esc>", 'tnx')
+   call assert_equal(['englis'], getline(1, '$'))
+   call feedkeys("SEnglis\<c-x>\<c-k>\<esc>", 'tnx')
+   call assert_equal(['English'], getline(1, '$'))
+ 
+   set spelllang=en_us
+   call feedkeys("Stheat\<c-x>\<c-k>\<esc>", 'tnx')
+   call assert_equal(['theater'], getline(1, '$'))
+   set spelllang=en_gb
+   call feedkeys("Stheat\<c-x>\<c-k>\<esc>", 'tnx')
+   " FIXME: commented out, expected theatre bug got theater. See issue #7025.
+   " call assert_equal(['theatre'], getline(1, '$'))
+ 
+   bwipe!
+   set spell& spelllang& dictionary& ignorecase&
+ endfunc
+ 
  func Test_spellreall()
    new
    set spell
*** ../vim-8.2.1753/src/version.c       2020-09-27 13:51:09.099888719 +0200
--- src/version.c       2020-09-27 13:57:47.086826979 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     1754,
  /**/

-- 
Contrary to popular belief, it's often your clothing that gets promoted, not
you.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202009271159.08RBxBeF138601%40masaka.moolenaar.net.

Raspunde prin e-mail lui