Skip to content

Commit 21efc36

Browse files
committed
patch 8.0.0119
Problem: No test for using CTRL-R on the command line. Solution: Add a test. (Dominique Pelle) And some more.
1 parent 99c5eb4 commit 21efc36

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

src/testdir/test_cmdline.vim

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,26 @@ func Test_expand_star_star()
194194
bwipe!
195195
call delete('a', 'rf')
196196
endfunc
197+
198+
func Test_paste_in_cmdline()
199+
let @a = "def"
200+
call feedkeys(":abc \<C-R>a ghi\<C-B>\"\<CR>", 'tx')
201+
call assert_equal('"abc def ghi', @:)
202+
203+
new
204+
call setline(1, 'asdf.x /tmp/some verylongword a;b-c*d ')
205+
206+
call feedkeys(":aaa \<C-R>\<C-W> bbb\<C-B>\"\<CR>", 'tx')
207+
call assert_equal('"aaa asdf bbb', @:)
208+
209+
call feedkeys("ft:aaa \<C-R>\<C-F> bbb\<C-B>\"\<CR>", 'tx')
210+
call assert_equal('"aaa /tmp/some bbb', @:)
211+
212+
set incsearch
213+
call feedkeys("fy:aaa veryl\<C-R>\<C-W> bbb\<C-B>\"\<CR>", 'tx')
214+
call assert_equal('"aaa verylongword bbb', @:)
215+
216+
call feedkeys("f;:aaa \<C-R>\<C-A> bbb\<C-B>\"\<CR>", 'tx')
217+
call assert_equal('"aaa a;b-c*d bbb', @:)
218+
bwipe!
219+
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
119,
767769
/**/
768770
118,
769771
/**/

0 commit comments

Comments
 (0)