1
0
forked from aniani/vim

patch 8.2.0258: modifyOtherKeys cannot be temporarily disabled

Problem:    ModifyOtherKeys cannot be temporarily disabled.
Solution:   Add echoraw() with an example for modifyOtherKeys.
This commit is contained in:
Bram Moolenaar
2020-02-14 16:53:00 +01:00
parent 00f3b4e007
commit 4132eb505c
5 changed files with 56 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
source shared.vim
source check.vim
source term_util.vim
source screendump.vim
" Must be done first, since the alternate buffer must be unset.
func Test_00_bufexists()
@@ -2017,3 +2018,19 @@ func Test_range()
" uniq()
call assert_equal([0, 1, 2, 3, 4], uniq(range(5)))
endfunc
func Test_echoraw()
CheckScreendump
" Normally used for escape codes, but let's test with a CR.
let lines =<< trim END
call echoraw("hello\<CR>x")
END
call writefile(lines, 'XTest_echoraw')
let buf = RunVimInTerminal('-S XTest_echoraw', {'rows': 5, 'cols': 40})
call VerifyScreenDump(buf, 'Test_functions_echoraw', {})
" clean up
call StopVimInTerminal(buf)
call delete('XTest_echoraw')
endfunc