Patch 8.2.2479
Problem:    set/getbufline test fails without the job feature.
Solution:   Check whether the job feature is supported. (Dominique Pellé,
            closes #7790)
Files:      src/testdir/test_bufline.vim, src/testdir/test_vim9_builtin.vim


*** ../vim-8.2.2478/src/testdir/test_bufline.vim        2021-01-31 
13:08:16.164367438 +0100
--- src/testdir/test_bufline.vim        2021-02-07 14:30:28.127114100 +0100
***************
*** 40,50 ****
    call assert_equal([], getbufline(b, 6))
    call assert_equal([], getbufline(b, 2, 1))
  
!   call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()])
!   call assert_equal(["function('eval')",
!                   \ "{'key': 123}",
!                   \ "no process"],
!                   \ getbufline(b, 2, 4))
    exe "bwipe! " . b
  endfunc
  
--- 40,52 ----
    call assert_equal([], getbufline(b, 6))
    call assert_equal([], getbufline(b, 2, 1))
  
!   if has('job')
!     call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()])
!     call assert_equal(["function('eval')",
!                     \ "{'key': 123}",
!                     \ "no process"],
!                     \ getbufline(b, 2, 4))
!   endif
    exe "bwipe! " . b
  endfunc
  
*** ../vim-8.2.2478/src/testdir/test_vim9_builtin.vim   2021-02-03 
17:41:19.924245848 +0100
--- src/testdir/test_vim9_builtin.vim   2021-02-07 14:30:28.127114100 +0100
***************
*** 824,834 ****
        assert_equal([], getbufline(b, 6))
        assert_equal([], getbufline(b, 2, 1))
  
!       setbufline(b, 2, [function('eval'), {key: 123}, test_null_job()])
!       assert_equal(["function('eval')",
!                       "{'key': 123}",
!                       "no process"],
!                       getbufline(b, 2, 4))
  
        exe 'bwipe! ' .. b
    END
--- 824,836 ----
        assert_equal([], getbufline(b, 6))
        assert_equal([], getbufline(b, 2, 1))
  
!       if has('job')
!         setbufline(b, 2, [function('eval'), {key: 123}, test_null_job()])
!         assert_equal(["function('eval')",
!                         "{'key': 123}",
!                         "no process"],
!                         getbufline(b, 2, 4))
!       endif
  
        exe 'bwipe! ' .. b
    END
*** ../vim-8.2.2478/src/version.c       2021-02-07 14:01:30.232933727 +0100
--- src/version.c       2021-02-07 14:30:21.035137169 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2479,
  /**/

-- 
GUARD #1:  Where'd you get the coconut?
ARTHUR:    We found them.
GUARD #1:  Found them?  In Mercea?  The coconut's tropical!
ARTHUR:    What do you mean?
GUARD #1:  Well, this is a temperate zone.
                                  The Quest for the Holy Grail (Monty Python)

 /// 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/202102071333.117DXMgK2841475%40masaka.moolenaar.net.

Raspunde prin e-mail lui