Patch 8.2.1619
Problem:    Vim9: cannot pass "true" to spellsuggest().
Solution:   Use tv_get_bool_chk(). (closes #6883)
Files:      src/evalfunc.c, src/testdir/test_vim9_func.vim


*** ../vim-8.2.1618/src/evalfunc.c      2020-09-05 21:41:53.127168164 +0200
--- src/evalfunc.c      2020-09-05 22:41:35.713356821 +0200
***************
*** 7828,7834 ****
                return;
            if (argvars[2].v_type != VAR_UNKNOWN)
            {
!               need_capital = (int)tv_get_number_chk(&argvars[2], &typeerr);
                if (typeerr)
                    return;
            }
--- 7828,7834 ----
                return;
            if (argvars[2].v_type != VAR_UNKNOWN)
            {
!               need_capital = (int)tv_get_bool_chk(&argvars[2], &typeerr);
                if (typeerr)
                    return;
            }
*** ../vim-8.2.1618/src/testdir/test_vim9_func.vim      2020-09-05 
22:37:35.729976483 +0200
--- src/testdir/test_vim9_func.vim      2020-09-05 22:44:30.584906018 +0200
***************
*** 1628,1633 ****
--- 1628,1641 ----
    assert_equal(reginfo, getreginfo('a'))
  enddef 
  
+ def Test_spellsuggest()
+   if !has('spell')
+     MissingFeature 'spell'
+   else
+     spellsuggest('marrch', 1, true)->assert_equal(['March'])
+   endif
+ enddef
+ 
  def Test_synID()
    new
    setline(1, "text")
*** ../vim-8.2.1618/src/version.c       2020-09-05 22:37:35.729976483 +0200
--- src/version.c       2020-09-05 22:45:08.124809299 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     1619,
  /**/

-- 
CONCORDE:  Quickly, sir, come this way!
LAUNCELOT: No!  It's not right for my idiom.  I must escape more  ... more ...
CONCORDE:  Dramatically, sir?
LAUNCELOT: Dramatically.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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/202009052046.085KkNug717023%40masaka.moolenaar.net.

Raspunde prin e-mail lui