diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-13 20:58:33 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-13 20:58:33 +0200 |
commit | 2bb7b6b0e477612cc098cba27cc63ec3d19a2527 (patch) | |
tree | 0a4badc5a5b096260256edb358cfb184fd0b901f /src/testdir/test_terminal.vim | |
parent | 304b64c9e6957fa3f552e0540ca786139b39a1c4 (diff) | |
download | vim-git-2bb7b6b0e477612cc098cba27cc63ec3d19a2527.tar.gz |
patch 8.0.0936: mode() returns wrong value for a terminal windowv8.0.0936
Problem: Mode() returns wrong value for a terminal window.
Solution: Return 't' when typed keys go to a job.
Diffstat (limited to 'src/testdir/test_terminal.vim')
-rw-r--r-- | src/testdir/test_terminal.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index 605292e6a..e18087bbd 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -42,8 +42,13 @@ func Test_terminal_basic() call assert_match("^winpty://", job_info(g:job).tty) call assert_match("^winpty://", term_gettty('')) endif + call assert_equal('t', mode()) + call assert_match('%aR[^\n]*running]', execute('ls')) + call Stop_shell_in_terminal(buf) call term_wait(buf) + call assert_equal('n', mode()) + call assert_match('%aF[^\n]*finished]', execute('ls')) " closing window wipes out the terminal buffer a with finished job close |