diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-27 05:58:27 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-27 05:58:27 +0800 |
| commit | 289256337a5de9993e592ad0adaea7fef14af86c (patch) | |
| tree | 64880e0e91bb98ddff6a5cc76555d62cf25c3075 /src/nvim/testdir | |
| parent | 7e939ddb874b66414fc09bb1b33c34838b45b184 (diff) | |
| parent | 4225e6ee46c55ff0930c8435a049309974b7c006 (diff) | |
| download | rneovim-289256337a5de9993e592ad0adaea7fef14af86c.tar.gz rneovim-289256337a5de9993e592ad0adaea7fef14af86c.tar.bz2 rneovim-289256337a5de9993e592ad0adaea7fef14af86c.zip | |
Merge pull request #19523 from ii14/vim-9.0.0085
vim-patch:9.0.0085: ":write" fails after ":file name" and the ":edit"
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_excmd.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_excmd.vim b/src/nvim/testdir/test_excmd.vim index f844999d8d..dac7a6989d 100644 --- a/src/nvim/testdir/test_excmd.vim +++ b/src/nvim/testdir/test_excmd.vim @@ -696,5 +696,21 @@ func Test_using_zero_in_range() bwipe! endfunc +" Test :write after changing name with :file and loading it with :edit +func Test_write_after_rename() + call writefile(['text'], 'Xfile') + + enew + file Xfile + call assert_fails('write', 'E13: File exists (add ! to override)') + + " works OK after ":edit" + edit + write + + call delete('Xfile') + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |