aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_quickfix.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-11-20 11:09:44 +0100
committerGitHub <noreply@github.com>2018-11-20 11:09:44 +0100
commit3e87f5ccf8ef792827d2e4daad495c61f0e01938 (patch)
tree32ddd2a7c7a0282ea1a3bafb721d0e3bf72b34f0 /src/nvim/testdir/test_quickfix.vim
parentdeb18a050ef522791c48c7c8c549a2c4b2043be0 (diff)
parent54a586736bab4a657b1457c59d1c0959f009687d (diff)
downloadrneovim-3e87f5ccf8ef792827d2e4daad495c61f0e01938.tar.gz
rneovim-3e87f5ccf8ef792827d2e4daad495c61f0e01938.tar.bz2
rneovim-3e87f5ccf8ef792827d2e4daad495c61f0e01938.zip
Merge #9256 'vim-patch:8.0.{737,1163,1165,1171,1249,1427}'
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
-rw-r--r--src/nvim/testdir/test_quickfix.vim27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim
index bfe5791ec8..cb3e7ca8f6 100644
--- a/src/nvim/testdir/test_quickfix.vim
+++ b/src/nvim/testdir/test_quickfix.vim
@@ -2637,3 +2637,30 @@ func Test_shorten_fname()
silent! clist
call assert_equal('test_quickfix.vim', bufname('test_quickfix.vim'))
endfunc
+
+" Test for the position of the quickfix and location list window
+func Test_qfwin_pos()
+ " Open two windows
+ new | only
+ new
+ cexpr ['F1:10:L10']
+ copen
+ " Quickfix window should be the bottom most window
+ call assert_equal(3, winnr())
+ close
+ " Open at the very top
+ wincmd t
+ topleft copen
+ call assert_equal(1, winnr())
+ close
+ " open left of the current window
+ wincmd t
+ below new
+ leftabove copen
+ call assert_equal(2, winnr())
+ close
+ " open right of the current window
+ rightbelow copen
+ call assert_equal(3, winnr())
+ close
+endfunc