Skip to content

Commit b4d2cb1

Browse files
committed
patch 8.2.0300: Vim9: expression test fails without channel support
Problem: Vim9: expression test fails without channel support. Solution: Add has('channel') check.
1 parent 8ed0458 commit b4d2cb1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/testdir/test_vim9_expr.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,10 @@ def Test_expr7_not()
773773
assert_equal(true, !{})
774774
assert_equal(false, !{'yes': 'no'})
775775

776-
assert_equal(true, !test_null_job())
777-
assert_equal(true, !test_null_channel())
776+
if has('channel')
777+
assert_equal(true, !test_null_job())
778+
assert_equal(true, !test_null_channel())
779+
endif
778780

779781
assert_equal(true, !test_null_blob())
780782
assert_equal(true, !0z)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
300,
741743
/**/
742744
299,
743745
/**/

0 commit comments

Comments
 (0)