From b1b8759fc31c437b60de534f547d9f055d5d3ad6 Mon Sep 17 00:00:00 2001 From: watiko Date: Thu, 14 Jan 2016 12:19:15 +0900 Subject: 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 --- src/nvim/version.c | 2 +- test/functional/legacy/mapping_spec.lua | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/nvim/version.c b/src/nvim/version.c index b38caf52f2..5bb3949663 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -510,7 +510,7 @@ static int included_patches[] = { 617, // 616, 615, - // 614, + 614, // 613, 612, // 611 NA 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")') + feed('/^a b') + feed('0qqdw.ifooqj0@q') + execute('unmap .') + expect([[ + fooc d + fooc d + ]]) + end) + it('i_CTRL-G_U', function() -- U works only within a single line execute('imapclear') -- cgit