From 743993eb553302a461ee0ef9cffa57f93c10c955 Mon Sep 17 00:00:00 2001 From: KunMing Xie Date: Sun, 30 Jul 2017 07:36:44 +0800 Subject: [PATCH] vim-patch:8.0.0119 (#7091) Problem: No test for using CTRL-R on the command line. Solution: Add a test. (Dominique Pelle) And some more. https://github.com/vim/vim/commit/21efc3633edb58809c5dd89b025d34d7002e731c --- src/nvim/testdir/test_cmdline.vim | 23 +++++++++++++++++++++++ src/nvim/version.c | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) 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 \a ghi\\"\", 'tx') + call assert_equal('"abc def ghi', @:) + + new + call setline(1, 'asdf.x /tmp/some verylongword a;b-c*d ') + + call feedkeys(":aaa \\ bbb\\"\", 'tx') + call assert_equal('"aaa asdf bbb', @:) + + call feedkeys("ft:aaa \\ bbb\\"\", 'tx') + call assert_equal('"aaa /tmp/some bbb', @:) + + set incsearch + call feedkeys("fy:aaa veryl\\ bbb\\"\", 'tx') + call assert_equal('"aaa verylongword bbb', @:) + + call feedkeys("f;:aaa \\ bbb\\"\", 'tx') + call assert_equal('"aaa a;b-c*d bbb', @:) + bwipe! +endfunc diff --git a/src/nvim/version.c b/src/nvim/version.c index 31d3122f95..4f83b09e1b 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -610,7 +610,7 @@ static const int included_patches[] = { // 122 NA 121, // 120 NA - // 119, + 119, // 118, // 117 NA 116,