neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 7c38f428f445e47fa7aee9bdc08c2d4a0bbad22d
parent 9a5b3a39f32bfb8c9b4b6c810b782e0e4b234a1a
Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca>
Date:   Mon, 21 Jul 2025 21:21:19 -0400

vim-patch:9.0.2023: need more tests for :cq

Problem:  need more tests for :cq
Solution: Add more tests, including wraparound on linux

https://github.com/vim/vim/commit/ba9aed44975cc82290208fd45f35dd72fc66d6c1

vim-patch:9.0.2042: Test_cq_zero_exmode fails without channel feature

Problem:  Test_cq_zero_exmode fails without channel feature
Solution: Make the test check the channel feature

closes: vim/vim#13365

https://github.com/vim/vim/commit/c290009e99405024a0d91ec7fab21ac7111c421b

Co-authored-by: Christian Brabandt <cb@256bit.org>

Diffstat:
Mtest/old/testdir/test_startup.vim | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/test/old/testdir/test_startup.vim b/test/old/testdir/test_startup.vim @@ -1324,5 +1324,27 @@ func Test_rename_buffer_on_startup() call delete('Xresult') endfunc +" Test that -cq works as expected +func Test_cq_zero_exmode() + CheckFeature channel + + let logfile = 'Xcq_log.txt' + let out = system(GetVimCommand() .. ' --clean --log ' .. logfile .. ' -es -X -c "argdelete foobar" -c"7cq"') + call assert_equal(8, v:shell_error) + let log = filter(readfile(logfile), {idx, val -> val =~ "E480"}) + call assert_match('E480: No match: foobar', log[0]) + call delete(logfile) + + " wrap-around on Unix + let out = system(GetVimCommand() .. ' --clean --log ' .. logfile .. ' -es -X -c "argdelete foobar" -c"255cq"') + if !has('win32') + call assert_equal(0, v:shell_error) + else + call assert_equal(256, v:shell_error) + endif + let log = filter(readfile(logfile), {idx, val -> val =~ "E480"}) + call assert_match('E480: No match: foobar', log[0]) + call delete('Xcq_log.txt') +endfunc " vim: shiftwidth=2 sts=2 expandtab