Mercurial > vim
view src/testdir/test_autochdir.vim @ 18428:9f7a2cfabfba v8.1.2208
patch 8.1.2208: Unix: Tabs in output might be expanded to spaces
Commit: https://github.com/vim/vim/commit/faf626e5d1ca128e4bf943c4e505f08d428ed77e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 24 17:43:25 2019 +0200
patch 8.1.2208: Unix: Tabs in output might be expanded to spaces
Problem: Unix: Tabs in output might be expanded to spaces.
Solution: Reset the XTABS flag. (closes https://github.com/vim/vim/issues/5108)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Oct 2019 17:45:05 +0200 |
parents | 0da9bc55c31a |
children | 26a04a556982 |
line wrap: on
line source
" Test 'autochdir' behavior source check.vim CheckOption autochdir func Test_set_filename() let cwd = getcwd() call test_autochdir() set acd let s:li = [] autocmd DirChanged auto call add(s:li, "autocd") autocmd DirChanged auto call add(s:li, expand("<afile>")) new w samples/Xtest call assert_equal("Xtest", expand('%')) call assert_equal("samples", substitute(getcwd(), '.*/\(\k*\)', '\1', '')) call assert_equal(["autocd", getcwd()], s:li) bwipe! au! DirChanged set noacd exe 'cd ' . cwd call delete('samples/Xtest') endfunc