comparison src/testdir/test_mapping.vim @ 31245:fbc4d3b0302d v9.0.0956

patch 9.0.0956: terminal tests fail when using key with modifier Commit: https://github.com/vim/vim/commit/9f14557d6a5b4f832029c292d7b3359b68336058 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 27 12:45:41 2022 +0000 patch 9.0.0956: terminal tests fail when using key with modifier Problem: Terminal tests fail when using key with modifier. Solution: Use the modifyOtherKeys encoding when using RunVimInTerminal().
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Nov 2022 14:00:05 +0100
parents ee50174810ac
children 096fe1952003
comparison
equal deleted inserted replaced
31244:1866e7eb3b85 31245:fbc4d3b0302d
582 endfunc 582 endfunc
583 set stl=%{Status()} 583 set stl=%{Status()}
584 END 584 END
585 call writefile(lines, 'XtestExprMap', 'D') 585 call writefile(lines, 'XtestExprMap', 'D')
586 let buf = RunVimInTerminal('-S XtestExprMap', #{rows: 10}) 586 let buf = RunVimInTerminal('-S XtestExprMap', #{rows: 10})
587 call term_sendkeys(buf, "\<C-B>") 587 call term_sendkeys(buf, GetEscCodeWithModifier('C', 'B'))
588 call VerifyScreenDump(buf, 'Test_map_expr_1', {}) 588 call VerifyScreenDump(buf, 'Test_map_expr_1', {})
589 589
590 " clean up 590 " clean up
591 call StopVimInTerminal(buf) 591 call StopVimInTerminal(buf)
592 endfunc 592 endfunc