aboutsummaryrefslogtreecommitdiff
path: root/test/functional/viml/completion_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-06 21:35:03 +0200
committerGitHub <noreply@github.com>2017-04-06 21:35:03 +0200
commit30e1cda8acb7bd8120348d1812cfd9ecd8be8528 (patch)
treead1359e372adf3d852375414f29d54c048c01998 /test/functional/viml/completion_spec.lua
parentc501d7c432693705482f76a384a98b4b4c0ef1a9 (diff)
downloadrneovim-30e1cda8acb7bd8120348d1812cfd9ecd8be8528.tar.gz
rneovim-30e1cda8acb7bd8120348d1812cfd9ecd8be8528.tar.bz2
rneovim-30e1cda8acb7bd8120348d1812cfd9ecd8be8528.zip
completion: fix segfault with ignorecase+infercase (#6452)
Helped-by: Matthew Malcomson <hardenedapple@gmail.com> Closes #6451
Diffstat (limited to 'test/functional/viml/completion_spec.lua')
-rw-r--r--test/functional/viml/completion_spec.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/viml/completion_spec.lua b/test/functional/viml/completion_spec.lua
index 3c09d71eb7..5a37cb8f43 100644
--- a/test/functional/viml/completion_spec.lua
+++ b/test/functional/viml/completion_spec.lua
@@ -850,6 +850,22 @@ describe('completion', function()
]])
end)
end)
+
+ it("'ignorecase' 'infercase' CTRL-X CTRL-N #6451", function()
+ execute('set ignorecase infercase')
+ execute('edit BACKERS.md')
+ feed('oX<C-X><C-N>')
+ screen:expect([[
+ # Bountysource Backers |
+ Xnull^ |
+ {2:Xnull }{6: } |
+ {1:Xoxomoon }{6: }ryone who backed our [Bountysource fundraise|
+ {1:Xu }{6: }ountysource.com/teams/neovim/fundraiser)! |
+ {1:Xpayn }{2: } |
+ {1:Xinity }{2: }d URL in BACKERS.md. |
+ {3:-- Keyword Local completion (^N^P) }{4:match 1 of 7} |
+ ]])
+ end)
end)
describe('External completion popupmenu', function()