diff options
author | Albert Han <yjhan96@gmail.com> | 2017-09-03 09:23:09 -0400 |
---|---|---|
committer | Albert Han <yjhan96@gmail.com> | 2017-09-03 09:26:46 -0400 |
commit | 69a201d6c5504ded687a0603c2a6e88531deb5dc (patch) | |
tree | 6da13a80ef8f0575505f0bd7c0507343dce3b8d4 /src | |
parent | 11429f94293b95394df436cb09d64a528fa387db (diff) | |
download | rneovim-69a201d6c5504ded687a0603c2a6e88531deb5dc.tar.gz rneovim-69a201d6c5504ded687a0603c2a6e88531deb5dc.tar.bz2 rneovim-69a201d6c5504ded687a0603c2a6e88531deb5dc.zip |
vim-patch:8.0.0125
Problem: Not enough testing for entering Ex commands.
Solution: Add test for CTRL-\ e {expr}. (Dominique Pelle)
https://github.com/vim/vim/commit/eaaa9bbda6ec0a8589a9b23720f95bffe01dc267
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 17 | ||||
-rw-r--r-- | src/nvim/version.c | 2 |
2 files changed, 18 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index bab700284f..2facffb067 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -230,9 +230,26 @@ func Test_paste_in_cmdline() call feedkeys("f;:aaa \<C-R>\<C-A> bbb\<C-B>\"\<CR>", 'tx') call assert_equal('"aaa a;b-c*d bbb', @:) + + call feedkeys(":\<C-\>etoupper(getline(1))\<CR>\<C-B>\"\<CR>", 'tx') + call assert_equal('"ASDF.X /TMP/SOME VERYLONGWORD A;B-C*D ', @:) bwipe! endfunc +func Test_remove_char_in_cmdline() + call feedkeys(":abc def\<S-Left>\<Del>\<C-B>\"\<CR>", 'tx') + call assert_equal('"abc ef', @:) + + call feedkeys(":abc def\<S-Left>\<BS>\<C-B>\"\<CR>", 'tx') + call assert_equal('"abcdef', @:) + + call feedkeys(":abc def ghi\<S-Left>\<C-W>\<C-B>\"\<CR>", 'tx') + call assert_equal('"abc ghi', @:) + + call feedkeys(":abc def\<S-Left>\<C-U>\<C-B>\"\<CR>", 'tx') + call assert_equal('"def', @:) +endfunc + func Test_illegal_address() new 2;'( diff --git a/src/nvim/version.c b/src/nvim/version.c index 73ac3fa6ce..6e24e30a09 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -827,7 +827,7 @@ static const int included_patches[] = { 128, 127, 126, - // 125, + 125, 124, // 123 NA // 122 NA |