aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/mapping_spec.lua
diff options
context:
space:
mode:
authorwatiko <service@mail.watiko.net>2016-01-14 12:19:15 +0900
committerwatiko <service@mail.watiko.net>2016-01-14 12:22:45 +0900
commitb1b8759fc31c437b60de534f547d9f055d5d3ad6 (patch)
treeaf840fe7323ac6c6a40e1288122a608d7d796b7f /test/functional/legacy/mapping_spec.lua
parent62f1aaedb1e53813caf44c0eb8f8925843be6ae3 (diff)
downloadrneovim-b1b8759fc31c437b60de534f547d9f055d5d3ad6.tar.gz
rneovim-b1b8759fc31c437b60de534f547d9f055d5d3ad6.tar.bz2
rneovim-b1b8759fc31c437b60de534f547d9f055d5d3ad6.zip
vim-patch:7.4.614
Problem: There is no test for what patch 7.4.601 fixes. Solution: Add a test. (Christian Brabandt) https://github.com/vim/vim/commit/d7ce7a9ad2d9311f7ec3368eeddec8fce6d8e890
Diffstat (limited to 'test/functional/legacy/mapping_spec.lua')
-rw-r--r--test/functional/legacy/mapping_spec.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/legacy/mapping_spec.lua b/test/functional/legacy/mapping_spec.lua
index 3f86ec60de..a0d19926cb 100644
--- a/test/functional/legacy/mapping_spec.lua
+++ b/test/functional/legacy/mapping_spec.lua
@@ -84,6 +84,23 @@ describe('mapping', function()
+]])
end)
+ it('feedkeys', function()
+ insert([[
+ a b c d
+ a b c d
+ ]])
+
+ -- Vim's issue #212 (feedkeys insert mapping at current position)
+ execute('nnoremap . :call feedkeys(".", "in")<cr>')
+ feed('/^a b<cr>')
+ feed('0qqdw.ifoo<esc>qj0@q<esc>')
+ execute('unmap .')
+ expect([[
+ fooc d
+ fooc d
+ ]])
+ end)
+
it('i_CTRL-G_U', function()
-- <c-g>U<cursor> works only within a single line
execute('imapclear')