Patch 8.1.0790
Problem:    Code for creating tabpages in session is too complex.
Solution:   Simplify the code. (Jason Franklin)
Files:      src/ex_docmd.c


*** ../vim-8.1.0789/src/ex_docmd.c      2019-01-21 23:03:45.718447626 +0100
--- src/ex_docmd.c      2019-01-22 21:23:27.735578930 +0100
***************
*** 11401,11426 ****
      tab_topframe = topframe;
      if ((ssop_flags & SSOP_TABPAGES))
      {
!       int     num_tabs;
  
!       /*
!        * Similar to ses_win_rec() below, populate the tab pages first so
!        * later local options won't be copied to the new tabs.
!        */
!       for (tabnr = 1; ; ++tabnr)
!       {
!           tabpage_T *tp = find_tabpage(tabnr);
! 
!           if (tp == NULL)     /* done all tab pages */
!               break;
! 
!           if (tabnr > 1 && put_line(fd, "tabnew") == FAIL)
                return FAIL;
!       }
! 
!       num_tabs = tabnr - 1;
!       if (num_tabs > 1 && (fprintf(fd, "tabnext -%d", num_tabs - 1) < 0
!                                                      || put_eol(fd) == FAIL))
            return FAIL;
      }
      for (tabnr = 1; ; ++tabnr)
--- 11401,11414 ----
      tab_topframe = topframe;
      if ((ssop_flags & SSOP_TABPAGES))
      {
!       tabpage_T *tp;
  
!       // Similar to ses_win_rec() below, populate the tab pages first so
!       // later local options won't be copied to the new tabs.
!       FOR_ALL_TABPAGES(tp)
!           if (tp->tp_next != NULL && put_line(fd, "tabnew") == FAIL)
                return FAIL;
!       if (first_tabpage->tp_next != NULL && put_line(fd, "tabrewind") == FAIL)
            return FAIL;
      }
      for (tabnr = 1; ; ++tabnr)
*** ../vim-8.1.0789/src/version.c       2019-01-21 23:03:45.718447626 +0100
--- src/version.c       2019-01-22 21:25:49.030606634 +0100
***************
*** 793,794 ****
--- 793,796 ----
  {   /* Add new patch number below this line */
+ /**/
+     790,
  /**/

-- 
The software said it requires Windows 95 or better, so I installed Linux.

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui