patch 8.2.0258: modifyOtherKeys cannot be temporarily disabled
Problem: ModifyOtherKeys cannot be temporarily disabled.
Solution: Add echoraw() with an example for modifyOtherKeys.
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim
index 9173e85..c748854 100644
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -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 @@
" 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