diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-06 07:39:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-05 23:39:15 +0000 |
commit | a261f602a067c7cb4de39fa6330053c08dcfd5e5 (patch) | |
tree | a6af9867ba3a094962dd5b6a2aabca2952c63f4d | |
parent | cd7d3cc041d1ae067cd45deab71ed6410ffd0ab8 (diff) | |
download | rneovim-a261f602a067c7cb4de39fa6330053c08dcfd5e5.tar.gz rneovim-a261f602a067c7cb4de39fa6330053c08dcfd5e5.tar.bz2 rneovim-a261f602a067c7cb4de39fa6330053c08dcfd5e5.zip |
vim-patch:9.1.1174: tests: Test_complete_cmdline() may fail (#32743)
Problem: tests: when the file 'TestCommand?Test' exists,
'Test_complete_cmdline()' will fail when writing the file. And
there's no related cleaning operation for this kind of file
before the test run.
Solution: modify `write` to `write!` to override (Jim Zhou).
closes: vim/vim#16799
https://github.com/vim/vim/commit/f7087cbec7ec1d32465c2460f2665725c8d3a06a
Co-authored-by: Jim Zhou <jimzhouzzy@gmail.com>
-rw-r--r-- | test/old/testdir/test_ins_complete.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/old/testdir/test_ins_complete.vim b/test/old/testdir/test_ins_complete.vim index d339bbe4e1..c2062a355f 100644 --- a/test/old/testdir/test_ins_complete.vim +++ b/test/old/testdir/test_ins_complete.vim @@ -1208,8 +1208,8 @@ func Test_complete_cmdline() call assert_equal('abcxyz(', getline(3)) com! -buffer TestCommand1 echo 'TestCommand1' com! -buffer TestCommand2 echo 'TestCommand2' - write TestCommand1Test - write TestCommand2Test + write! TestCommand1Test + write! TestCommand2Test " Test repeating <CTRL-X> <CTRL-V> and switching to another CTRL-X mode exe "normal oT\<C-X>\<C-V>\<C-X>\<C-V>\<C-X>\<C-F>\<Esc>" call assert_equal('TestCommand2Test', getline(4)) |