diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-01-15 06:20:01 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2023-01-15 07:59:45 +0800 |
| commit | f2056e4045a667447392f5e17c27b0f72ec7b8e0 (patch) | |
| tree | d9c9360f83f137e9429f0389084085b1129002c3 /src/nvim/testdir/test_writefile.vim | |
| parent | 89f45dc155d24e797c144b32de109b64368f20ea (diff) | |
| download | rneovim-f2056e4045a667447392f5e17c27b0f72ec7b8e0.tar.gz rneovim-f2056e4045a667447392f5e17c27b0f72ec7b8e0.tar.bz2 rneovim-f2056e4045a667447392f5e17c27b0f72ec7b8e0.zip | |
vim-patch:8.2.4565: no command line completion for :breakadd and :breakdel
Problem: No command line completion for :breakadd and :breakdel.
Solution: Add completion for :breakadd and :breakdel. (Yegappan Lakshmanan,
closes vim/vim#9950)
https://github.com/vim/vim/commit/6e2e2cc95b913e33145047e0fade5193da6e4379
Diffstat (limited to 'src/nvim/testdir/test_writefile.vim')
| -rw-r--r-- | src/nvim/testdir/test_writefile.vim | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_writefile.vim b/src/nvim/testdir/test_writefile.vim index 6d27407f82..6019cee193 100644 --- a/src/nvim/testdir/test_writefile.vim +++ b/src/nvim/testdir/test_writefile.vim @@ -896,6 +896,9 @@ endfunc " link to the original file. The backup file should not be modified. func Test_write_backup_symlink() CheckUnix + call mkdir('Xbackup') + let save_backupdir = &backupdir + set backupdir=.,./Xbackup call writefile(['1111'], 'Xfile') silent !ln -s Xfile Xfile.bak @@ -904,11 +907,18 @@ func Test_write_backup_symlink() write call assert_equal('link', getftype('Xfile.bak')) call assert_equal('Xfile', resolve('Xfile.bak')) + " backup file should be created in the 'backup' directory + if !has('bsd') + " This check fails on FreeBSD + call assert_true(filereadable('./Xbackup/Xfile.bak')) + endif set backup& backupcopy& backupext& - close + %bw call delete('Xfile') call delete('Xfile.bak') + call delete('Xbackup', 'rf') + let &backupdir = save_backupdir endfunc " Test for ':write ++bin' and ':write ++nobin' |