File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -215,5 +215,22 @@ func Test_paste_in_cmdline()
215215
216216 call feedkeys (" f;:aaa \<C-R>\<C-A> bbb\<C-B> \" \<CR> " , ' tx' )
217217 call assert_equal (' "aaa a;b-c*d bbb' , @: )
218+
219+ call feedkeys (" :\<C-\>etoupper(getline(1))\<CR>\<C-B> \" \<CR> " , ' tx' )
220+ call assert_equal (' "ASDF.X /TMP/SOME VERYLONGWORD A;B-C*D ' , @: )
218221 bwipe!
219222endfunc
223+
224+ func Test_remove_char_in_cmdline ()
225+ call feedkeys (" :abc def\<S-Left>\<Del>\<C-B> \" \<CR> " , ' tx' )
226+ call assert_equal (' "abc ef' , @: )
227+
228+ call feedkeys (" :abc def\<S-Left>\<BS>\<C-B> \" \<CR> " , ' tx' )
229+ call assert_equal (' "abcdef' , @: )
230+
231+ call feedkeys (" :abc def ghi\<S-Left>\<C-W>\<C-B> \" \<CR> " , ' tx' )
232+ call assert_equal (' "abc ghi' , @: )
233+
234+ call feedkeys (" :abc def\<S-Left>\<C-U>\<C-B> \" \<CR> " , ' tx' )
235+ call assert_equal (' "def' , @: )
236+ 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+ 125 ,
767769/**/
768770 124 ,
769771/**/
You can’t perform that action at this time.
0 commit comments