Skip to content

Commit eaaa9bb

Browse files
committed
patch 8.0.0125
Problem: Not enough testing for entering Ex commands. Solution: Add test for CTRL-\ e {expr}. (Dominique Pelle)
1 parent 3421566 commit eaaa9bb

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/testdir/test_cmdline.vim

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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!
219222
endfunc
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

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+
125,
767769
/**/
768770
124,
769771
/**/

0 commit comments

Comments
 (0)