Mercurial > vim
view src/testdir/test_autochdir.vim @ 9982:e24aa20d815c v7.4.2264
commit https://github.com/vim/vim/commit/2b529bb6260b52246e92429375d995b9b5ce76b6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 27 13:35:35 2016 +0200
patch 7.4.2264
Problem: When adding entries to an empty quickfix list the title is reset.
Solution: Improve handling of the title. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 27 Aug 2016 13:45:05 +0200 |
parents | 38e2fc4ee4ef |
children | 03a6aeea2096 |
line wrap: on
line source
" Test 'autochdir' behavior if !exists("+autochdir") finish endif func Test_set_filename() call test_autochdir() set acd new w samples/Xtest call assert_equal("Xtest", expand('%')) call assert_equal("samples", substitute(getcwd(), '.*/\(\k*\)', '\1', '')) bwipe! set noacd call delete('samples/Xtest') endfunc