To: vim_dev@googlegroups.com Subject: Patch 8.1.2275 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.2275 Problem: Using "seesion" looks like a mistake. Solution: Use an underscore to make the function sort first. Files: src/testdir/test_mksession.vim *** ../vim-8.1.2274/src/testdir/test_mksession.vim 2019-09-29 14:23:35.792563008 +0200 --- src/testdir/test_mksession.vim 2019-11-09 16:57:03.415832529 +0100 *************** *** 9,14 **** --- 9,37 ---- source shared.vim source term_util.vim + " Test for storing global and local argument list in a session file + " This one must be done first. + func Test__mksession_arglocal() + enew | only + n a b c + new + arglocal + mksession! Xtest_mks.out + + %bwipe! + %argdelete + argglobal + source Xtest_mks.out + call assert_equal(2, winnr('$')) + call assert_equal(2, arglistid(1)) + call assert_equal(0, arglistid(2)) + + %bwipe! + %argdelete + argglobal + call delete('Xtest_mks.out') + endfunc + func Test_mksession() tabnew let wrap_save = &wrap *************** *** 598,625 **** set sessionoptions& endfunc - " Test for storing global and local argument list in a session file - func Test_mkseesion_arglocal() - enew | only - n a b c - new - arglocal - mksession! Xtest_mks.out - - %bwipe! - %argdelete - argglobal - source Xtest_mks.out - call assert_equal(2, winnr('$')) - call assert_equal(2, arglistid(1)) - call assert_equal(0, arglistid(2)) - - %bwipe! - %argdelete - argglobal - call delete('Xtest_mks.out') - endfunc - " Test for changing directory to the session file directory func Test_mksession_sesdir() call mkdir('Xproj') --- 621,626 ---- *** ../vim-8.1.2274/src/version.c 2019-11-09 16:59:09.363100382 +0100 --- src/version.c 2019-11-09 17:18:21.588422948 +0100 *************** *** 743,744 **** --- 743,746 ---- { /* Add new patch number below this line */ + /**/ + 2275, /**/ -- hundred-and-one symptoms of being an internet addict: 48. You get a tatoo that says "This body best viewed with Netscape 3.1 or higher." /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///