vim-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.
3e112acc22

Include modeline fix for ASAN build.

N/A patches for version.c:

vim-patch:8.2.1785: compiler warning for strcp() out of bounds

Problem:    Compiler warning for strcp() out of bounds. (Christian Brabandt)
Solution:   use memmove() instead.
3f974ff45e

vim-patch:8.2.2235: build failure with some Ruby versions

Problem:    Build failure with some Ruby versions.
Solution:   Adjust the code for Ruby 3.0. (Ozaki Kiichi, closes vim/vim#7564)
dace9f785f

vim-patch:8.2.2237: CI on Mac fails in sed command

Problem:    CI on Mac fails in sed command.
Solution:   Set LC_ALL to "C". (Ozaki Kiichi, closes vim/vim#7565)
ed1e4c9a70

vim-patch:8.2.2241: Build with Ruby and clang may fail

Problem:    Build with Ruby and clang may fail.
Solution:   Adjust congigure and sed script. (Ozaki Kiichi, closes vim/vim#7566)
864a28b6a6
This commit is contained in:
Jan Edmund Lazo
2020-12-28 13:46:54 -05:00
parent a58c5509d9
commit 0e913a0812

View File

@@ -51,18 +51,21 @@ func Test_complete_wildmenu()
call feedkeys(":e Xdir1/\<Tab>\<Down>\<Up>\<Right>\<CR>", 'tx') call feedkeys(":e Xdir1/\<Tab>\<Down>\<Up>\<Right>\<CR>", 'tx')
call assert_equal('testfile1', getline(1)) call assert_equal('testfile1', getline(1))
+ " <C-J>/<C-K> mappings to go up/down directories when 'wildcharm' is " this fails in some Unix GUIs, not sure why
" different than 'wildchar'. if !has('unix') || !has('gui_running')
set wildcharm=<C-Z> " <C-J>/<C-K> mappings to go up/down directories when 'wildcharm' is
cnoremap <C-J> <Down><C-Z> " different than 'wildchar'.
cnoremap <C-K> <Up><C-Z> set wildcharm=<C-Z>
call feedkeys(":e Xdir1/\<Tab>\<C-J>\<CR>", 'tx') cnoremap <C-J> <Down><C-Z>
call assert_equal('testfile3', getline(1)) cnoremap <C-K> <Up><C-Z>
call feedkeys(":e Xdir1/\<Tab>\<C-J>\<C-K>\<CR>", 'tx') call feedkeys(":e Xdir1/\<Tab>\<C-J>\<CR>", 'tx')
call assert_equal('testfile1', getline(1)) call assert_equal('testfile3', getline(1))
set wildcharm=0 call feedkeys(":e Xdir1/\<Tab>\<C-J>\<C-K>\<CR>", 'tx')
cunmap <C-J> call assert_equal('testfile1', getline(1))
cunmap <C-K> set wildcharm=0
cunmap <C-J>
cunmap <C-K>
endif
" cleanup " cleanup
%bwipe %bwipe
@@ -1001,4 +1004,4 @@ func Test_read_shellcmd()
endif endif
endfunc endfunc
" vim: shiftwidth=2 sts=2 expandtab " vim: shiftwidth=2 sts=2 expandtab " vim: shiftwidth=2 sts=2 expandtab