From 0dd64556590633b2cab7cd846b28bbf5f7ef35d4 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sun, 25 Jun 2017 11:01:16 -0400 Subject: vim-patch:7.4.2268 Problem: Using CTRL-N and CTRL-P for incsearch shadows completion keys. Solution: Use CTRL-T and CTRL-G instead. https://github.com/vim/vim/commit/1195669f9e434fa9ab8b57ee9470bf951e4990b8 --- test/functional/legacy/search_spec.lua | 58 +++++++++++++++++----------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'test/functional/legacy/search_spec.lua') diff --git a/test/functional/legacy/search_spec.lua b/test/functional/legacy/search_spec.lua index 4f03369269..36c91accd6 100644 --- a/test/functional/legacy/search_spec.lua +++ b/test/functional/legacy/search_spec.lua @@ -48,49 +48,49 @@ describe('search cmdline', function() 2 {inc:the}se | /the^ | ]]) - feed('') + feed('') screen:expect([[ 2 these | 3 {inc:the} | /the^ | ]]) - feed('') + feed('') screen:expect([[ 3 the | 4 {inc:the}ir | /the^ | ]]) - feed('') + feed('') screen:expect([[ 4 their | 5 {inc:the}re | /the^ | ]]) - feed('') + feed('') screen:expect([[ 5 there | 6 {inc:the}ir | /the^ | ]]) - feed('') + feed('') screen:expect([[ 6 their | 7 {inc:the} | /the^ | ]]) - feed('') + feed('') screen:expect([[ 7 the | 8 {inc:the}m | /the^ | ]]) - feed('') + feed('') screen:expect([[ 8 them | 9 {inc:the}se | /the^ | ]]) - feed('') + feed('') if wrapscan == 'wrapscan' then screen:expect([[ 2 {inc:the}se | @@ -117,7 +117,7 @@ describe('search cmdline', function() ?the^ | ]]) if wrapscan == 'wrapscan' then - feed('') + feed('') screen:expect([[ 2 {inc:the}se | 3 the | @@ -130,7 +130,7 @@ describe('search cmdline', function() ?the | ]]) else - feed('') + feed('') screen:expect([[ 9 {inc:the}se | 10 foobar | @@ -150,14 +150,14 @@ describe('search cmdline', function() 10 foobar | ?the^ | ]]) - feed('') + feed('') screen:expect([[ 8 {inc:the}m | 9 these | ?the^ | ]]) for i = 1, 6 do - feed('') + feed('') -- Avoid sleep just before expect, otherwise expect will take the full -- timeout if i ~= 6 then @@ -169,7 +169,7 @@ describe('search cmdline', function() 3 the | ?the^ | ]]) - feed('') + feed('') if wrapscan == 'wrapscan' then screen:expect([[ 9 {inc:the}se | @@ -185,19 +185,19 @@ describe('search cmdline', function() end end - it("using and 'nowrapscan'", function() + it("using and 'nowrapscan'", function() forwarditer('nowrapscan') end) - it("using and 'wrapscan'", function() + it("using and 'wrapscan'", function() forwarditer('wrapscan') end) - it("using and 'nowrapscan'", function() + it("using and 'nowrapscan'", function() backiter('nowrapscan') end) - it("using and 'wrapscan'", function() + it("using and 'wrapscan'", function() backiter('wrapscan') end) end) @@ -218,13 +218,13 @@ describe('search cmdline', function() 2 {inc:thes}e | /thes^ | ]]) - feed('') + feed('') screen:expect([[ 9 {inc:thes}e | 10 foobar | /thes^ | ]]) - feed('') + feed('') screen:expect([[ 2 {inc:thes}e | 3 the | @@ -251,13 +251,13 @@ describe('search cmdline', function() 2 {inc:thes}e | /thes^ | ]]) - feed('') + feed('') screen:expect([[ 9 {inc:thes}e | 10 foobar | /thes^ | ]]) - feed('') + feed('') screen:expect([[ 9 ^these | 10 foobar | @@ -298,7 +298,7 @@ describe('search cmdline', function() /the^ | ]]) -- Advance to previous match - feed('') + feed('') screen:expect([[ 8 {inc:the}m | 9 these | @@ -332,7 +332,7 @@ describe('search cmdline', function() ]]) end) - it('can traverse matches in the same line with /', function() + it('can traverse matches in the same line with /', function() funcs.setline(1, { ' 1', ' 2 these', ' 3 the theother' }) command('1') command('set incsearch') @@ -346,7 +346,7 @@ describe('search cmdline', function() ]]) -- Next match, different line - feed('') + feed('') screen:expect([[ 2 these | 3 {inc:the} theother | @@ -354,13 +354,13 @@ describe('search cmdline', function() ]]) -- Next match, same line - feed('') + feed('') screen:expect([[ 2 these | 3 the {inc:the}other | /the^ | ]]) - feed('') + feed('') screen:expect([[ 2 these | 3 the theo{inc:the}r | @@ -368,13 +368,13 @@ describe('search cmdline', function() ]]) -- Previous match, same line - feed('') + feed('') screen:expect([[ 2 these | 3 the {inc:the}other | /the^ | ]]) - feed('') + feed('') screen:expect([[ 2 these | 3 {inc:the} theother | @@ -382,7 +382,7 @@ describe('search cmdline', function() ]]) -- Previous match, different line - feed('') + feed('') screen:expect([[ 2 {inc:the}se | 3 the theother | -- cgit