mirror of
https://github.com/neovim/neovim.git
synced 2026-04-14 03:26:10 +00:00
vim-patch:8.2.0904: assuming modifyOtherKeys for rhs of mapping (#38970)
Problem: Assuming modifyOtherKeys for rhs of mapping.
Solution: Ignore seenModifyOtherKeys for mapped characters. (closes vim/vim#6200)
46cd43bda1
----
"getchar.c" changes depend on patch 8.1.2145.
Can't port it due to tests.
"test_gui.vim" doesn't depend on GUI for all tests.
----
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -219,7 +219,7 @@ preprocess_patch() {
|
||||
2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git [ab]/src/testdir/\<\%('"${na_src_testdir}"'\)\>@exe "norm! d/\\v(^diff)|%$\r"' +w +q "$file"
|
||||
|
||||
# Remove testdir/test_*.vim files
|
||||
local na_src_testdir='balloon.*\|behave\.vim\|channel.*\|crypt\.vim\|cscope\.vim\|gui.*\|hardcopy\.vim\|job_fails\.vim\|json\.vim\|listener\.vim\|mzscheme\.vim\|netbeans.*\|paste\.vim\|popupwin.*\|python2\.vim\|pyx2\.vim\|restricted\.vim\|shortpathname\.vim\|sound\.vim\|tcl\.vim\|terminal.*\|xxd\.vim'
|
||||
local na_src_testdir='balloon.*\|behave\.vim\|channel.*\|crypt\.vim\|cscope\.vim\|hardcopy\.vim\|job_fails\.vim\|json\.vim\|listener\.vim\|mzscheme\.vim\|netbeans.*\|paste\.vim\|popupwin.*\|python2\.vim\|pyx2\.vim\|restricted\.vim\|shortpathname\.vim\|sound\.vim\|tcl\.vim\|terminal.*\|xxd\.vim'
|
||||
2>/dev/null $nvim --cmd 'set dir=/tmp' +'g@^diff --git [ab]/src/testdir/\<test_\%('"${na_src_testdir}"'\)\>@exe "norm! d/\\v(^diff)|%$\r"' +w +q "$file"
|
||||
|
||||
# Remove runtime/*/testdir/ files
|
||||
|
||||
@@ -44,6 +44,16 @@ func Test_colorscheme()
|
||||
redraw!
|
||||
endfunc
|
||||
|
||||
func Test_gui_recursive_mapping()
|
||||
nmap ' <C-W>
|
||||
nmap <C-W>a :let didit = 1<CR>
|
||||
call feedkeys("'a", 'xt')
|
||||
call assert_equal(1, didit)
|
||||
|
||||
nunmap '
|
||||
nunmap <C-W>a
|
||||
endfunc
|
||||
|
||||
" Test that Buffers menu generates the correct index for different buffer
|
||||
" names for sorting.
|
||||
func Test_Buffers_Menu()
|
||||
|
||||
Reference in New Issue
Block a user