diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-01-24 16:14:53 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-01-24 16:14:53 -0500 |
commit | e1d81178ccf374e7142207356a022bdf10571918 (patch) | |
tree | 27a9ffcccc043d37339af008acda7b4128264467 /test/functional | |
parent | 31047607f89c58d51252044f00a7ae37ea94578c (diff) | |
parent | 50c4c56967933afa30ff5fdfc689120cfd0f762e (diff) | |
download | rneovim-e1d81178ccf374e7142207356a022bdf10571918.tar.gz rneovim-e1d81178ccf374e7142207356a022bdf10571918.tar.bz2 rneovim-e1d81178ccf374e7142207356a022bdf10571918.zip |
Merge pull request #4069 from jusga/vim-7.4.680
vim-patch:7.4.680
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/legacy/erasebackword_spec.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/legacy/erasebackword_spec.lua b/test/functional/legacy/erasebackword_spec.lua new file mode 100644 index 0000000000..cb3967b763 --- /dev/null +++ b/test/functional/legacy/erasebackword_spec.lua @@ -0,0 +1,24 @@ +-- Test for CTRL-W in Insert mode + +local helpers = require('test.functional.helpers') +local clear, feed, expect = helpers.clear, helpers.feed, helpers.expect + +describe('CTRL-W in Insert mode', function() + setup(clear) + + it('works for multi-byte characters', function() + + for i = 1, 6 do + feed('o wwwこんにちわ世界ワールドvim ' .. string.rep('<C-w>', i) .. '<esc>') + end + + expect([[ + + wwwこんにちわ世界ワールド + wwwこんにちわ世界 + wwwこんにちわ + www + + ]]) + end) +end) |