Mercurial > vim
view src/testdir/test_findfile.vim @ 14459:ecf6c05d8ac3 v8.1.0243
patch 8.1.0243: using :term ++close ++hidden closes a window
commit https://github.com/vim/vim/commit/5db7eec42337f0eecdc332f582eecf37278044e8
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 7 16:33:18 2018 +0200
patch 8.1.0243: using :term ++close ++hidden closes a window
Problem: Using :term ++close ++hidden closes a window. (Marcin Szamotulski)
Solution: Don't close the window if only using it temporarily for unloading
the terminal buffer. (closes #3287)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 07 Aug 2018 16:45:05 +0200 |
parents | a479b7064550 |
children | 977a05589b65 |
line wrap: on
line source
" Test for findfile() " func Test_findfile() new let cwd=getcwd() cd .. " Tests may be run from a shadow directory, so an extra cd needs to be done to " get above src/ if fnamemodify(getcwd(), ':t') != 'src' cd ../.. else cd .. endif set ssl call assert_equal('src/testdir/test_findfile.vim', findfile('test_findfile.vim','src/test*')) exe "cd" cwd cd .. call assert_equal('testdir/test_findfile.vim', findfile('test_findfile.vim','test*')) call assert_equal('testdir/test_findfile.vim', findfile('test_findfile.vim','testdir')) exe "cd" cwd q! endfunc