# HG changeset patch # User Bram Moolenaar # Date 1609159504 -3600 # Node ID 7d6bffda5b6b170ce8d4b9440daebd19df5997b5 # Parent 9d640db3536edd8ca39718f597a3af70baa5ca5c patch 8.2.2234: command line wildmenu test often fails with Unix GUI Commit: https://github.com/vim/vim/commit/3e112acc220dcacb58d77edca71910a532fffd0f Author: Bram Moolenaar Date: Mon Dec 28 13:41:53 2020 +0100 patch 8.2.2234: command line wildmenu test often fails with Unix GUI Problem: Command line wildmenu test often fails with Unix GUI. Solution: Skip the test where it is expected to fail. diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -58,18 +58,21 @@ func Test_complete_wildmenu() call feedkeys(":e Xdir1/\\\\\", 'tx') call assert_equal('testfile1', getline(1)) - + " / mappings to go up/down directories when 'wildcharm' is - " different than 'wildchar'. - set wildcharm= - cnoremap - cnoremap - call feedkeys(":e Xdir1/\\\", 'tx') - call assert_equal('testfile3', getline(1)) - call feedkeys(":e Xdir1/\\\\", 'tx') - call assert_equal('testfile1', getline(1)) - set wildcharm=0 - cunmap - cunmap + " this fails in some Unix GUIs, not sure why + if !has('unix') || !has('gui_running') + " / mappings to go up/down directories when 'wildcharm' is + " different than 'wildchar'. + set wildcharm= + cnoremap + cnoremap + call feedkeys(":e Xdir1/\\\", 'tx') + call assert_equal('testfile3', getline(1)) + call feedkeys(":e Xdir1/\\\\", 'tx') + call assert_equal('testfile1', getline(1)) + set wildcharm=0 + cunmap + cunmap + endif " Test for canceling the wild menu by adding a character redrawstatus diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2234, +/**/ 2233, /**/ 2232,