• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Révisionc14f5d3a205dce66f65f5cac12a81a00b7699c57 (tree)
l'heure2019-11-10 02:15:03
AuteurBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Message de Log

patch 8.1.2276: MS-Windows: session test leaves files behind

Commit: https://github.com/vim/vim/commit/5bf46e978619ff602a7c63dd98e19de8248236b3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 9 18:06:04 2019 +0100

patch 8.1.2276: MS-Windows: session test leaves files behind
Problem: MS-Windows: session test leaves files behind.
Solution: Wipe out buffers before deleting the directory. (closes https://github.com/vim/vim/issues/5187)

Change Summary

Modification

diff -r be63c60a2345 -r c14f5d3a205d src/testdir/test_mksession.vim
--- a/src/testdir/test_mksession.vim Sat Nov 09 17:30:04 2019 +0100
+++ b/src/testdir/test_mksession.vim Sat Nov 09 18:15:03 2019 +0100
@@ -276,8 +276,8 @@
276276 call assert_equal('Xtabdir3', fnamemodify(getcwd(-1, 3), ':t'))
277277 call assert_equal('Xtabdir3', fnamemodify(getcwd(1, 3), ':t'))
278278 call assert_equal('Xwindir3', fnamemodify(getcwd(2, 3), ':t'))
279- only | tabonly
280- exe 'cd ' . save_cwd
279+ %bwipe
280+ call chdir(save_cwd)
281281 call delete("Xtopdir", "rf")
282282 endfunc
283283
@@ -623,6 +623,7 @@
623623
624624 " Test for changing directory to the session file directory
625625 func Test_mksession_sesdir()
626+ let save_cwd = getcwd()
626627 call mkdir('Xproj')
627628 mksession! Xproj/Xtest_mks1.out
628629 set sessionoptions-=curdir
@@ -633,7 +634,8 @@
633634 call assert_equal('testdir', fnamemodify(getcwd(), ':t'))
634635 source Xproj/Xtest_mks2.out
635636 call assert_equal('Xproj', fnamemodify(getcwd(), ':t'))
636- cd ..
637+ call chdir(save_cwd)
638+ %bwipe
637639
638640 set sessionoptions&
639641 call delete('Xproj', 'rf')
diff -r be63c60a2345 -r c14f5d3a205d src/version.c
--- a/src/version.c Sat Nov 09 17:30:04 2019 +0100
+++ b/src/version.c Sat Nov 09 18:15:03 2019 +0100
@@ -742,6 +742,8 @@
742742 static int included_patches[] =
743743 { /* Add new patch number below this line */
744744 /**/
745+ 2276,
746+/**/
745747 2275,
746748 /**/
747749 2274,
Afficher sur ancien navigateur de dépôt.