]> granicus.if.org Git - vim/commitdiff
patch 8.0.1367: terminal test hangs, executing abcde
authorBram Moolenaar <Bram@vim.org>
Tue, 5 Dec 2017 11:30:03 +0000 (12:30 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 5 Dec 2017 11:30:03 +0000 (12:30 +0100)
Problem:    terminal test hangs, executing abcde. (Stucki)
Solution:   Rename abcde to abxde.

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

index cdff5c3d4f4049fa56dd1b029ca058a3f7087fe7..cb04edfb7d944f16ac8b17ffa5420a3ddf4ee0fa 100644 (file)
@@ -673,15 +673,16 @@ func TerminalTmap(remap)
   else
     tnoremap 123 456
   endif
-  tmap 456 abcde
+  " don't use abcde, it's an existing command
+  tmap 456 abxde
   call assert_equal('456', maparg('123', 't'))
-  call assert_equal('abcde', maparg('456', 't'))
+  call assert_equal('abxde', maparg('456', 't'))
   call feedkeys("123", 'tx')
   let g:buf = buf
-  call WaitFor("term_getline(g:buf,term_getcursor(g:buf)[0]) =~ 'abcde\\|456'")
+  call WaitFor("term_getline(g:buf,term_getcursor(g:buf)[0]) =~ 'abxde\\|456'")
   let lnum = term_getcursor(buf)[0]
   if a:remap
-    call assert_match('abcde', term_getline(buf, lnum))
+    call assert_match('abxde', term_getline(buf, lnum))
   else
     call assert_match('456', term_getline(buf, lnum))
   endif
index 4a82af9de30ae4f1ee3e0660e92a0f195a67090e..c2445cef14947dc8b7a6adedc4c60a4a749791cf 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1367,
 /**/
     1366,
 /**/