From aa17b4b4bc3c9134e2c0316d31be3bb000e46a56 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 28 Jan 2016 23:28:23 -0500 Subject: 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 --- test/functional/legacy/quickfix_spec.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/functional/legacy/quickfix_spec.lua (limited to 'test/functional/legacy/quickfix_spec.lua') 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) -- cgit