comparison src/testdir/test_terminal.vim @ 12112:6afc7339c2ad v8.0.0936

patch 8.0.0936: mode() returns wrong value for a terminal window commit https://github.com/vim/vim/commit/2bb7b6b0e477612cc098cba27cc63ec3d19a2527 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 13 20:58:33 2017 +0200 patch 8.0.0936: mode() returns wrong value for a terminal window Problem: Mode() returns wrong value for a terminal window. Solution: Return 't' when typed keys go to a job.
author Christian Brabandt <cb@256bit.org>
date Sun, 13 Aug 2017 21:00:04 +0200
parents d2c20ec4b95a
children bf53df1f17ba
comparison
equal deleted inserted replaced
12111:feca91869d87 12112:6afc7339c2ad
40 call assert_match("^/dev/", term_gettty('')) 40 call assert_match("^/dev/", term_gettty(''))
41 else 41 else
42 call assert_match("^winpty://", job_info(g:job).tty) 42 call assert_match("^winpty://", job_info(g:job).tty)
43 call assert_match("^winpty://", term_gettty('')) 43 call assert_match("^winpty://", term_gettty(''))
44 endif 44 endif
45 call assert_equal('t', mode())
46 call assert_match('%aR[^\n]*running]', execute('ls'))
47
45 call Stop_shell_in_terminal(buf) 48 call Stop_shell_in_terminal(buf)
46 call term_wait(buf) 49 call term_wait(buf)
50 call assert_equal('n', mode())
51 call assert_match('%aF[^\n]*finished]', execute('ls'))
47 52
48 " closing window wipes out the terminal buffer a with finished job 53 " closing window wipes out the terminal buffer a with finished job
49 close 54 close
50 call assert_equal("", bufname(buf)) 55 call assert_equal("", bufname(buf))
51 56