Mercurial > vim
view src/testdir/test_autochdir.vim @ 18858:539c05ea2d3a v8.1.2415
patch 8.1.2415: popup menu flickers if an info popup is used
Commit: https://github.com/vim/vim/commit/04357fbb87e65e50cc76295aec50114adb5cbd68
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 10 21:50:56 2019 +0100
patch 8.1.2415: popup menu flickers if an info popup is used
Problem: Popup menu flickers if an info popup is used. (Nick Spoons)
Solution: Set the pum_skip_redraw flag.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 10 Dec 2019 22:00:04 +0100 |
parents | 26a04a556982 |
children | 08940efa6b4e |
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 call chdir(cwd) call delete('samples/Xtest') endfunc