File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,3 +194,26 @@ func Test_expand_star_star()
194194 bwipe!
195195 call delete (' a' , ' rf' )
196196endfunc
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
Original file line number Diff line number Diff line change @@ -764,6 +764,8 @@ static char *(features[]) =
764764
765765static int included_patches [] =
766766{ /* Add new patch number below this line */
767+ /**/
768+ 119 ,
767769/**/
768770 118 ,
769771/**/
You can’t perform that action at this time.
0 commit comments