diff options
| author | James McCoy <jamessan@jamessan.com> | 2016-12-14 14:36:38 -0500 |
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2016-12-27 14:10:27 -0500 |
| commit | f224f3fbf11ffd3095843c597045ca95c8241fcf (patch) | |
| tree | a2785280c42bdfb94ea0f9c86c34093c6a203ebf /src/nvim/testdir | |
| parent | f613c61dae7be1c4f9eadc223a77684a128508b0 (diff) | |
| download | rneovim-f224f3fbf11ffd3095843c597045ca95c8241fcf.tar.gz rneovim-f224f3fbf11ffd3095843c597045ca95c8241fcf.tar.bz2 rneovim-f224f3fbf11ffd3095843c597045ca95c8241fcf.zip | |
vim-patch:7.4.1997
Problem: Cannot easily scroll the quickfix window.
Solution: Add ":cbottom".
https://github.com/vim/vim/commit/dcb170018642ec144cd87d9d9fe076575b8d1263
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index a91e65df6c..7b141f17a4 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -1396,3 +1396,16 @@ echo string(loc_two) call delete('Xone', 'rf') call delete('Xtwo', 'rf') endfunc + +function Test_cbottom() + call setqflist([{'filename': 'foo', 'lnum': 42}]) + copen + let wid = win_getid() + call assert_equal(1, line('.')) + wincmd w + call setqflist([{'filename': 'var', 'lnum': 24}], 'a') + cbottom + call win_gotoid(wid) + call assert_equal(2, line('.')) + cclose +endfunc |