diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index bb0cae4819..39f865144a 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -51,18 +51,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 " cleanup %bwipe @@ -1001,4 +1004,4 @@ func Test_read_shellcmd() endif endfunc -" vim: shiftwidth=2 sts=2 expandtab " vim: shiftwidth=2 sts=2 expandtab +" vim: shiftwidth=2 sts=2 expandtab