Mercurial > vim
view src/testdir/test_autochdir.vim @ 14933:665d9c0fea86 v8.1.0478
patch 8.1.0478: cannot build with perl using MinGW
commit https://github.com/vim/vim/commit/65dc12143a0b5040922bdb47c522e93909701a10
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 15 20:11:18 2018 +0200
patch 8.1.0478: cannot build with perl using MinGW
Problem: Cannot build with perl using MinGW.
Solution: Add -I. (Ken takata, Cesar Romani)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 15 Oct 2018 20:15:04 +0200 |
parents | 03a6aeea2096 |
children | 90ab2d3ce11d |
line wrap: on
line source
" Test 'autochdir' behavior if !exists("+autochdir") finish endif func Test_set_filename() let cwd = getcwd() 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 exe 'cd ' . cwd call delete('samples/Xtest') endfunc