changeset 18562:ecbe15ce5918 v8.1.2275

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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Nov 2019 17:30:04 +0100
parents 279148391b36
children be63c60a2345
files src/testdir/test_mksession.vim src/version.c
diffstat 2 files changed, 25 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_mksession.vim
+++ b/src/testdir/test_mksession.vim
@@ -9,6 +9,29 @@ CheckFeature mksession
 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,28 +621,6 @@ func Test_mksession_slash()
   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')
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2275,
+/**/
     2274,
 /**/
     2273,