diff options
| author | Shane Smith <shane.wm.smith@gmail.com> | 2019-09-17 17:01:52 -0400 |
|---|---|---|
| committer | Shane Smith <shane.wm.smith@gmail.com> | 2019-10-27 23:24:54 -0400 |
| commit | cf7c34dea1080db403464f7b7fd50341597fd42c (patch) | |
| tree | d6aad26aa53a61c9d59cc1b6017015edcbea93b3 /src/nvim/testdir/test_quickfix.vim | |
| parent | c222f3e0060f168c7c7ab3e3926efd95d3def39f (diff) | |
| download | rneovim-cf7c34dea1080db403464f7b7fd50341597fd42c.tar.gz rneovim-cf7c34dea1080db403464f7b7fd50341597fd42c.tar.bz2 rneovim-cf7c34dea1080db403464f7b7fd50341597fd42c.zip | |
vim-patch:8.1.1112: duplicate code in quickfix file
Problem: Duplicate code in quickfix file.
Solution: Move code into functions. (Yegappan Lakshmanan, closes vim/vim#4207)
https://github.com/vim/vim/commit/87f59b09ea4b9af2712598374a6044f5fa1b54a4
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 26b43d9818..131e9d72e3 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/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) |