diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-27 18:00:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-27 18:00:34 +0200 |
commit | c6b37db1ba704455daa8f9e78bc1c2492fb81f40 (patch) | |
tree | efcf0a80525a0fc79ae3f5b9f24ba0330f51ee1e /src/testdir/test_edit.vim | |
parent | e13a3901cae0afb4d2af30d497696af08029fd81 (diff) |
patch 8.1.1214: old style testsv8.1.1214
Problem: Old style tests.
Solution: Move tests from test14 to new style test files. (Yegappan
Lakshmanan, closes #4308)
Diffstat (limited to 'src/testdir/test_edit.vim')
-rw-r--r-- | src/testdir/test_edit.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim index b35497fc2a..381e09cb48 100644 --- a/src/testdir/test_edit.vim +++ b/src/testdir/test_edit.vim @@ -1447,3 +1447,19 @@ func Test_leave_insert_autocmd() au! InsertLeave iunmap x endfunc + +" Test for inserting characters using CTRL-V followed by a number. +func Test_edit_special_chars() + new + + if has("ebcdic") + let t = "o\<C-V>193\<C-V>xc2\<C-V>o303 \<C-V>90a\<C-V>xfg\<C-V>o578\<Esc>" + else + let t = "o\<C-V>65\<C-V>x42\<C-V>o103 \<C-V>33a\<C-V>xfg\<C-V>o78\<Esc>" + endif + + exe "normal " . t + call assert_equal("ABC !a\<C-O>g\<C-G>8", getline(2)) + + close! +endfunc |