Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 28183:2b595cee4c85 v8.2.4617
patch 8.2.4617: no completion for :scriptnames
Commit: https://github.com/vim/vim/commit/454ce6737cadb82886f1fc0eb9e8666cc59ae42b
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Mar 24 11:22:13 2022 +0000
patch 8.2.4617: no completion for :scriptnames
Problem: No completion for :scriptnames.
Solution: Implement :scriptnames completion. (Yegappan Lakshmanan,
closes #10005)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Mar 2022 12:30:08 +0100 |
parents | 2a2c0958a913 |
children | 0e4097e7a714 |
comparison
equal
deleted
inserted
replaced
28182:2846627df454 | 28183:2b595cee4c85 |
---|---|
6200 bw Xtest1 | 6200 bw Xtest1 |
6201 call assert_equal(0, getqflist()[0].bufnr) | 6201 call assert_equal(0, getqflist()[0].bufnr) |
6202 %bw! | 6202 %bw! |
6203 endfunc | 6203 endfunc |
6204 | 6204 |
6205 " Test for the status message that is displayed when opening a new quickfix | |
6206 " list | |
6207 func Test_qflist_statusmsg() | |
6208 cexpr "1\n2" | |
6209 cexpr "1\n2\n3\ntest_quickfix.vim:1:msg" | |
6210 call assert_equal('(4 of 4): msg', v:statusmsg) | |
6211 call setqflist([], 'f') | |
6212 %bw! | |
6213 | |
6214 " When creating a new quickfix list, if an autocmd changes the quickfix list | |
6215 " in the stack, then an error message should be displayed. | |
6216 augroup QF_Test | |
6217 au! | |
6218 au BufEnter test_quickfix.vim colder | |
6219 augroup END | |
6220 cexpr "1\n2" | |
6221 call assert_fails('cexpr "1\n2\n3\ntest_quickfix.vim:1:msg"', 'E925:') | |
6222 call setqflist([], 'f') | |
6223 augroup QF_Test | |
6224 au! | |
6225 augroup END | |
6226 %bw! | |
6227 | |
6228 augroup QF_Test | |
6229 au! | |
6230 au BufEnter test_quickfix.vim caddexpr "4" | |
6231 augroup END | |
6232 call assert_fails('cexpr "1\n2\n3\ntest_quickfix.vim:1:msg"', 'E925:') | |
6233 call setqflist([], 'f') | |
6234 augroup QF_Test | |
6235 au! | |
6236 augroup END | |
6237 %bw! | |
6238 endfunc | |
6239 | |
6205 " vim: shiftwidth=2 sts=2 expandtab | 6240 " vim: shiftwidth=2 sts=2 expandtab |