diff options
| author | ckelsel <ckelsel@hotmail.com> | 2017-07-30 09:10:22 +0800 |
|---|---|---|
| committer | ckelsel <ckelsel@hotmail.com> | 2017-07-30 09:10:22 +0800 |
| commit | 7c7039767aa4d715aea997721b0d759b308a43d4 (patch) | |
| tree | ec7c704982a8fabb676700b218f066eb6c84cc0e /src/nvim/testdir/test_cmdline.vim | |
| parent | 973bc2b7e0ef1ca33764410ba0a22fc57bd42366 (diff) | |
| parent | 743993eb553302a461ee0ef9cffa57f93c10c955 (diff) | |
| download | rneovim-7c7039767aa4d715aea997721b0d759b308a43d4.tar.gz rneovim-7c7039767aa4d715aea997721b0d759b308a43d4.tar.bz2 rneovim-7c7039767aa4d715aea997721b0d759b308a43d4.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/nvim/testdir/test_cmdline.vim')
| -rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index f7a6aba6e7..c3bfae1b7b 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -209,3 +209,26 @@ func Test_expand_star_star() bwipe! call delete('a', 'rf') endfunc + +func Test_paste_in_cmdline() + let @a = "def" + call feedkeys(":abc \<C-R>a ghi\<C-B>\"\<CR>", 'tx') + call assert_equal('"abc def ghi', @:) + + new + call setline(1, 'asdf.x /tmp/some verylongword a;b-c*d ') + + call feedkeys(":aaa \<C-R>\<C-W> bbb\<C-B>\"\<CR>", 'tx') + call assert_equal('"aaa asdf bbb', @:) + + call feedkeys("ft:aaa \<C-R>\<C-F> bbb\<C-B>\"\<CR>", 'tx') + call assert_equal('"aaa /tmp/some bbb', @:) + + set incsearch + call feedkeys("fy:aaa veryl\<C-R>\<C-W> bbb\<C-B>\"\<CR>", 'tx') + call assert_equal('"aaa verylongword bbb', @:) + + call feedkeys("f;:aaa \<C-R>\<C-A> bbb\<C-B>\"\<CR>", 'tx') + call assert_equal('"aaa a;b-c*d bbb', @:) + bwipe! +endfunc |