• R/O
  • SSH

vim: Commit

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


Commit MetaInfo

Révisionecbe15ce5918fa52f9fc2f52d8ce02aa429fdf73 (tree)
l'heure2019-11-10 01:30:04
AuteurBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Message de Log

patch 8.1.2275: using "seesion" looks like a mistake

Commit: https://github.com/vim/vim/commit/1e15e61188e14ba67060c09d4c74e9b587016230
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 9 17:18:52 2019 +0100

patch 8.1.2275: using "seesion" looks like a mistake
Problem: Using "seesion" looks like a mistake.
Solution: Use an underscore to make the function sort first.

Change Summary

Modification

diff -r 279148391b36 -r ecbe15ce5918 src/testdir/test_mksession.vim
--- a/src/testdir/test_mksession.vim Sat Nov 09 17:00:03 2019 +0100
+++ b/src/testdir/test_mksession.vim Sat Nov 09 17:30:04 2019 +0100
@@ -9,6 +9,29 @@
99 source shared.vim
1010 source term_util.vim
1111
12+" Test for storing global and local argument list in a session file
13+" This one must be done first.
14+func Test__mksession_arglocal()
15+ enew | only
16+ n a b c
17+ new
18+ arglocal
19+ mksession! Xtest_mks.out
20+
21+ %bwipe!
22+ %argdelete
23+ argglobal
24+ source Xtest_mks.out
25+ call assert_equal(2, winnr('$'))
26+ call assert_equal(2, arglistid(1))
27+ call assert_equal(0, arglistid(2))
28+
29+ %bwipe!
30+ %argdelete
31+ argglobal
32+ call delete('Xtest_mks.out')
33+endfunc
34+
1235 func Test_mksession()
1336 tabnew
1437 let wrap_save = &wrap
@@ -598,28 +621,6 @@
598621 set sessionoptions&
599622 endfunc
600623
601-" Test for storing global and local argument list in a session file
602-func Test_mkseesion_arglocal()
603- enew | only
604- n a b c
605- new
606- arglocal
607- mksession! Xtest_mks.out
608-
609- %bwipe!
610- %argdelete
611- argglobal
612- source Xtest_mks.out
613- call assert_equal(2, winnr('$'))
614- call assert_equal(2, arglistid(1))
615- call assert_equal(0, arglistid(2))
616-
617- %bwipe!
618- %argdelete
619- argglobal
620- call delete('Xtest_mks.out')
621-endfunc
622-
623624 " Test for changing directory to the session file directory
624625 func Test_mksession_sesdir()
625626 call mkdir('Xproj')
diff -r 279148391b36 -r ecbe15ce5918 src/version.c
--- a/src/version.c Sat Nov 09 17:00:03 2019 +0100
+++ b/src/version.c Sat Nov 09 17:30:04 2019 +0100
@@ -742,6 +742,8 @@
742742 static int included_patches[] =
743743 { /* Add new patch number below this line */
744744 /**/
745+ 2275,
746+/**/
745747 2274,
746748 /**/
747749 2273,
Afficher sur ancien navigateur de dépôt.