]> granicus.if.org Git - vim/commitdiff
patch 8.0.0119 v8.0.0119
authorBram Moolenaar <Bram@vim.org>
Sat, 3 Dec 2016 13:05:49 +0000 (14:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 3 Dec 2016 13:05:49 +0000 (14:05 +0100)
Problem:    No test for using CTRL-R on the command line.
Solution:   Add a test. (Dominique Pelle) And some more.

src/testdir/test_cmdline.vim
src/version.c

index 3718087eb140eed19ed20a1afd273364128537f6..3080971b58b5f30d5e0d0b5454db026e1dcec67d 100644 (file)
@@ -194,3 +194,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
index cf91feb679fd8199a44849f4392cb5420510a3d7..eaf4a38b2a2a2fd538cb037d6b1c2e4ef7520030 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    119,
 /**/
     118,
 /**/