Mercurial > vim
diff src/testdir/test_quickfix.vim @ 13105:bfa7f5b23c53 v8.0.1427
patch 8.0.1427: the :leftabove modifier doesn't work for :copen
commit https://github.com/vim/vim/commit/de04654ddc865af94ef04b1738b335a924be7923
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 26 13:53:11 2017 +0100
patch 8.0.1427: the :leftabove modifier doesn't work for :copen
Problem: The :leftabove modifier doesn't work for :copen.
Solution: Respect the split modifier. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/2496)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 26 Dec 2017 14:00:05 +0100 |
parents | a0c6910e7fa4 |
children | 9812a9ca3ab2 |
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -3078,3 +3078,30 @@ func Test_lvimgrep_crash() augroup END enew | only 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