diff src/testdir/test_functions.vim @ 19400:bd9069d21c5d v8.2.0258

patch 8.2.0258: modifyOtherKeys cannot be temporarily disabled Commit: https://github.com/vim/vim/commit/4132eb505c506f7a0710b03a275d1c5a247e4196 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 14 16:53:00 2020 +0100 patch 8.2.0258: modifyOtherKeys cannot be temporarily disabled Problem: ModifyOtherKeys cannot be temporarily disabled. Solution: Add echoraw() with an example for modifyOtherKeys.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Feb 2020 17:00:04 +0100
parents e4a155edc9cb
children 738a4fe2c8c5
line wrap: on
line diff
--- 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 @@ 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