aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/quickfix_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-01-28 23:28:23 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-01-28 23:56:58 -0500
commitaa17b4b4bc3c9134e2c0316d31be3bb000e46a56 (patch)
tree7124f9214e5cf520d0339851783bafefae5b60eb /test/functional/legacy/quickfix_spec.lua
parentaa8b3b60ee03e4b6a5e664bc16f177893b2ba309 (diff)
downloadrneovim-aa17b4b4bc3c9134e2c0316d31be3bb000e46a56.tar.gz
rneovim-aa17b4b4bc3c9134e2c0316d31be3bb000e46a56.tar.bz2
rneovim-aa17b4b4bc3c9134e2c0316d31be3bb000e46a56.zip
vim-patch:7.4.1137
Problem: Illegal memory access when using :copen and :cclose. Solution: Avoid that curbuf is invalid. (suggestion by Justin M. Keyes) Add a test. https://github.com/vim/vim/commit/62ef797496c6243d111c596a592a8ef8c1d1e710
Diffstat (limited to 'test/functional/legacy/quickfix_spec.lua')
-rw-r--r--test/functional/legacy/quickfix_spec.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/legacy/quickfix_spec.lua b/test/functional/legacy/quickfix_spec.lua
new file mode 100644
index 0000000000..7a9958b949
--- /dev/null
+++ b/test/functional/legacy/quickfix_spec.lua
@@ -0,0 +1,18 @@
+-- Test for the quickfix commands.
+
+local helpers = require('test.functional.helpers')
+local insert, source = helpers.insert, helpers.source
+local clear, expect = helpers.clear, helpers.expect
+
+describe('helpgrep', function()
+ before_each(clear)
+
+ it('works', function()
+ source([[
+ helpgrep quickfix
+ copen
+ " This wipes out the buffer, make sure that doesn't cause trouble.
+ cclose
+ ]])
+ end)
+end)