Mercurial > vim
comparison src/testdir/test_terminal.vim @ 12983:7a9c4a8b1ceb
patch 8.0.1367: terminal test hangs, executing abcde
commit https://github.com/vim/vim/commit/461fe50fea245b2b199d92ebce4d9875d856bd27
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 5 12:30:03 2017 +0100
patch 8.0.1367: terminal test hangs, executing abcde
Problem: terminal test hangs, executing abcde. (Stucki)
Solution: Rename abcde to abxde.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 05 Dec 2017 12:45:04 +0100 |
parents | 32531a3eab1f |
children | fb1b162cdcf6 |
comparison
equal
deleted
inserted
replaced
12982:b257a7834e7e | 12983:7a9c4a8b1ceb |
---|---|
671 if a:remap | 671 if a:remap |
672 tmap 123 456 | 672 tmap 123 456 |
673 else | 673 else |
674 tnoremap 123 456 | 674 tnoremap 123 456 |
675 endif | 675 endif |
676 tmap 456 abcde | 676 " don't use abcde, it's an existing command |
677 tmap 456 abxde | |
677 call assert_equal('456', maparg('123', 't')) | 678 call assert_equal('456', maparg('123', 't')) |
678 call assert_equal('abcde', maparg('456', 't')) | 679 call assert_equal('abxde', maparg('456', 't')) |
679 call feedkeys("123", 'tx') | 680 call feedkeys("123", 'tx') |
680 let g:buf = buf | 681 let g:buf = buf |
681 call WaitFor("term_getline(g:buf,term_getcursor(g:buf)[0]) =~ 'abcde\\|456'") | 682 call WaitFor("term_getline(g:buf,term_getcursor(g:buf)[0]) =~ 'abxde\\|456'") |
682 let lnum = term_getcursor(buf)[0] | 683 let lnum = term_getcursor(buf)[0] |
683 if a:remap | 684 if a:remap |
684 call assert_match('abcde', term_getline(buf, lnum)) | 685 call assert_match('abxde', term_getline(buf, lnum)) |
685 else | 686 else |
686 call assert_match('456', term_getline(buf, lnum)) | 687 call assert_match('456', term_getline(buf, lnum)) |
687 endif | 688 endif |
688 | 689 |
689 call term_sendkeys(buf, "\r") | 690 call term_sendkeys(buf, "\r") |