1
0
forked from aniani/vim

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().
This commit is contained in:
Bram Moolenaar
2022-11-27 12:45:41 +00:00
parent cc0907165d
commit 9f14557d6a
5 changed files with 46 additions and 19 deletions

View File

@@ -584,7 +584,7 @@ func Test_expr_map_restore_cursor()
END
call writefile(lines, 'XtestExprMap', 'D')
let buf = RunVimInTerminal('-S XtestExprMap', #{rows: 10})
call term_sendkeys(buf, "\<C-B>")
call term_sendkeys(buf, GetEscCodeWithModifier('C', 'B'))
call VerifyScreenDump(buf, 'Test_map_expr_1', {})
" clean up