diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-20 16:05:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-20 16:05:32 +0200 |
commit | 845e0ee59430eac07e74b6cb92020e420d17953d (patch) | |
tree | 26060a20d77b243156cdeda2d6ae7a735469bff3 /src/testdir/test_paste.vim | |
parent | a190548e9165bbae75144a3e47f01d7708b29073 (diff) | |
download | vim-git-845e0ee59430eac07e74b6cb92020e420d17953d.tar.gz |
patch 8.2.1022: various parts of code not covered by testsv8.2.1022
Problem: Various parts of code not covered by tests.
Solution: Add more tests. (Yegappan Lakshmanan, closes #6300)
Diffstat (limited to 'src/testdir/test_paste.vim')
-rw-r--r-- | src/testdir/test_paste.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testdir/test_paste.vim b/src/testdir/test_paste.vim index c30140f43..194ae7d37 100644 --- a/src/testdir/test_paste.vim +++ b/src/testdir/test_paste.vim @@ -79,11 +79,27 @@ func Test_paste_clipboard() bwipe! endfunc +" bracketed paste in command line func Test_paste_cmdline() call feedkeys(":a\<Esc>[200~foo\<CR>bar\<Esc>[201~b\<Home>\"\<CR>", 'xt') call assert_equal("\"afoo\<CR>barb", getreg(':')) endfunc +" bracketed paste in Ex-mode +func Test_paste_ex_mode() + unlet! foo + call feedkeys("Qlet foo=\"\<Esc>[200~foo\<CR>bar\<Esc>[201~\"\<CR>vi\<CR>", 'xt') + call assert_equal("foo\rbar", foo) +endfunc + +func Test_paste_onechar() + new + let @f='abc' + call feedkeys("i\<C-R>\<Esc>[200~foo\<CR>bar\<Esc>[201~", 'xt') + call assert_equal("abc", getline(1)) + close! +endfunc + func Test_paste_visual_mode() new call setline(1, 'here are some words') @@ -134,3 +150,5 @@ func Test_xrestore() bwipe! endfunc + +" vim: shiftwidth=2 sts=2 expandtab |