Mercurial > vim
diff src/testdir/test_terminal.vim @ 13555:78ead137b2ad v8.0.1651
patch 8.0.1651: cannot filter :ls output for terminal buffers
commit https://github.com/vim/vim/commit/0751f51a5b428805a8c1e9fe529693d032bec991
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 29 16:37:16 2018 +0200
patch 8.0.1651: cannot filter :ls output for terminal buffers
Problem: Cannot filter :ls output for terminal buffers.
Solution: Add flags for terminal buffers. (Marcin Szamotulski, closes https://github.com/vim/vim/issues/2751)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 29 Mar 2018 16:45:06 +0200 |
parents | 87a9c1be0ae3 |
children | 4911058c43eb |
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -45,11 +45,17 @@ func Test_terminal_basic() call assert_equal('t', mode()) call assert_equal('yes', b:done) call assert_match('%aR[^\n]*running]', execute('ls')) + call assert_match('%aR[^\n]*running]', execute('ls R')) + call assert_notmatch('%[^\n]*running]', execute('ls F')) + call assert_notmatch('%[^\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')) + call assert_match('%aF[^\n]*finished]', execute('ls F')) + call assert_notmatch('%[^\n]*finished]', execute('ls R')) + call assert_notmatch('%[^\n]*finished]', execute('ls ?')) " closing window wipes out the terminal buffer a with finished job close