aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_quickfix.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-04-08 21:51:05 +0200
committerGitHub <noreply@github.com>2019-04-08 21:51:05 +0200
commitd48362fc8dcb88e4ded75a2d2726afff850c3cac (patch)
tree411b1ec230806dc6c154b5c90e733fae1f6ebc6f /src/nvim/testdir/test_quickfix.vim
parent5a81561e7afa9c26d2190677750e341694e17c91 (diff)
parent7381c93e2c0e7aa20d29cbc3c6c45de71e22a258 (diff)
downloadrneovim-d48362fc8dcb88e4ded75a2d2726afff850c3cac.tar.gz
rneovim-d48362fc8dcb88e4ded75a2d2726afff850c3cac.tar.bz2
rneovim-d48362fc8dcb88e4ded75a2d2726afff850c3cac.zip
Merge pull request #9867 from mhinz/vim-8.1.1134
vim-patch:{8.0.1763,8.1.1134}
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
-rw-r--r--src/nvim/testdir/test_quickfix.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim
index cb3e7ca8f6..6227095f4f 100644
--- a/src/nvim/testdir/test_quickfix.vim
+++ b/src/nvim/testdir/test_quickfix.vim
@@ -2664,3 +2664,17 @@ func Test_qfwin_pos()
call assert_equal(3, winnr())
close
endfunc
+
+" Test to make sure that an empty quickfix buffer is not reused for loading
+" a normal buffer.
+func Test_empty_qfbuf()
+ enew | only
+ call writefile(["Test"], 'Xfile1')
+ call setqflist([], 'f')
+ copen | only
+ let qfbuf = bufnr('')
+ edit Xfile1
+ call assert_notequal(qfbuf, bufnr(''))
+ enew
+ call delete('Xfile1')
+endfunc