Mercurial > vim
view src/testdir/test_autochdir.vim @ 17771:4bd21046902b v8.1.1882
patch 8.1.1882: cannot specify properties of the info popup window
commit https://github.com/vim/vim/commit/62a0cb443c3184f24a6dac73d3505f9056cf6056
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 18 16:35:23 2019 +0200
patch 8.1.1882: cannot specify properties of the info popup window
Problem: Cannot specify properties of the info popup window.
Solution: Add the 'completepopup' option. Default to PmenuSel highlight.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Aug 2019 16:45:03 +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