Mercurial > vim
diff src/testdir/test_quickfix.vim @ 16215:4202f556aefe v8.1.1112
patch 8.1.1112: duplicate code in quickfix file
commit https://github.com/vim/vim/commit/87f59b09ea4b9af2712598374a6044f5fa1b54a4
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 4 14:04:11 2019 +0200
patch 8.1.1112: duplicate code in quickfix file
Problem: Duplicate code in quickfix file.
Solution: Move code into functions. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4207)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 04 Apr 2019 14:15:05 +0200 |
parents | 096b8ccd855e |
children | 1f18984498e1 |
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -163,6 +163,12 @@ endfunc func XageTests(cchar) call s:setup_commands(a:cchar) + if a:cchar == 'l' + " No location list for the current window + call assert_fails('lolder', 'E776:') + call assert_fails('lnewer', 'E776:') + endif + let list = [{'bufnr': bufnr('%'), 'lnum': 1}] call g:Xsetlist(list)