]> granicus.if.org Git - vim/commitdiff
patch 8.0.0833: terminal test fails v8.0.0833
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Aug 2017 16:41:21 +0000 (18:41 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Aug 2017 16:41:21 +0000 (18:41 +0200)
Problem:    Terminal test fails.
Solution:   Update the row argument to one based.

src/testdir/test_terminal.vim
src/version.c

index acf69be337bab942defffbdd4ee562c4605d216b..8df690c3cc1076cb204877bc7a669f0f62985a10 100644 (file)
@@ -25,7 +25,7 @@ func Test_terminal_basic()
 endfunc
 
 func Check_123(buf)
-  let l = term_scrape(a:buf, 0)
+  let l = term_scrape(a:buf, 1)
   call assert_true(len(l) > 0)
   call assert_equal('1', l[0].chars)
   call assert_equal('2', l[1].chars)
@@ -37,7 +37,7 @@ func Check_123(buf)
     call assert_equal('#000000', l[0].bg)
   endif
 
-  let l = term_getline(a:buf, 0)
+  let l = term_getline(a:buf, 1)
   call assert_equal('123', l)
 endfunc
 
index 67862d09066ab4d6a3a1383a9e7e03ac256e91fb..4a77bddf3cb3ac15306a43cdaba2bfe4290878d0 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    833,
 /**/
     832,
 /**/