jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.205
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.205
3ef2ca
Problem:    ":mksession" writes command to move to second argument while it
3ef2ca
	    does not exist.  When it does exist the order might be wrong.
3ef2ca
Solution:   Use ":argadd" for each argument instead of using ":args" with a
3ef2ca
	    list of names. (Nobuhiro Takasaki)
3ef2ca
Files:	    src/ex_docmd.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.204/src/ex_docmd.c	2014-02-05 22:46:49.058587842 +0100
3ef2ca
--- src/ex_docmd.c	2014-03-12 21:08:35.361028825 +0100
3ef2ca
***************
3ef2ca
*** 10381,10387 ****
3ef2ca
      }
3ef2ca
  
3ef2ca
      /* the global argument list */
3ef2ca
!     if (ses_arglist(fd, "args", &global_alist.al_ga,
3ef2ca
  			    !(ssop_flags & SSOP_CURDIR), &ssop_flags) == FAIL)
3ef2ca
  	return FAIL;
3ef2ca
  
3ef2ca
--- 10381,10387 ----
3ef2ca
      }
3ef2ca
  
3ef2ca
      /* the global argument list */
3ef2ca
!     if (ses_arglist(fd, "argglobal", &global_alist.al_ga,
3ef2ca
  			    !(ssop_flags & SSOP_CURDIR), &ssop_flags) == FAIL)
3ef2ca
  	return FAIL;
3ef2ca
  
3ef2ca
***************
3ef2ca
*** 10955,10963 ****
3ef2ca
      char_u	*buf = NULL;
3ef2ca
      char_u	*s;
3ef2ca
  
3ef2ca
!     if (gap->ga_len == 0)
3ef2ca
! 	return put_line(fd, "silent! argdel *");
3ef2ca
!     if (fputs(cmd, fd) < 0)
3ef2ca
  	return FAIL;
3ef2ca
      for (i = 0; i < gap->ga_len; ++i)
3ef2ca
      {
3ef2ca
--- 10955,10963 ----
3ef2ca
      char_u	*buf = NULL;
3ef2ca
      char_u	*s;
3ef2ca
  
3ef2ca
!     if (fputs(cmd, fd) < 0 || put_eol(fd) == FAIL)
3ef2ca
! 	return FAIL;
3ef2ca
!     if (put_line(fd, "silent! argdel *") == FAIL)
3ef2ca
  	return FAIL;
3ef2ca
      for (i = 0; i < gap->ga_len; ++i)
3ef2ca
      {
3ef2ca
***************
3ef2ca
*** 10974,10980 ****
3ef2ca
  		    s = buf;
3ef2ca
  		}
3ef2ca
  	    }
3ef2ca
! 	    if (fputs(" ", fd) < 0 || ses_put_fname(fd, s, flagp) == FAIL)
3ef2ca
  	    {
3ef2ca
  		vim_free(buf);
3ef2ca
  		return FAIL;
3ef2ca
--- 10974,10982 ----
3ef2ca
  		    s = buf;
3ef2ca
  		}
3ef2ca
  	    }
3ef2ca
! 	    if (fputs("argadd ", fd) < 0
3ef2ca
! 		    || ses_put_fname(fd, s, flagp) == FAIL
3ef2ca
! 		    || put_eol(fd) == FAIL)
3ef2ca
  	    {
3ef2ca
  		vim_free(buf);
3ef2ca
  		return FAIL;
3ef2ca
***************
3ef2ca
*** 10982,10988 ****
3ef2ca
  	    vim_free(buf);
3ef2ca
  	}
3ef2ca
      }
3ef2ca
!     return put_eol(fd);
3ef2ca
  }
3ef2ca
  
3ef2ca
  /*
3ef2ca
--- 10984,10990 ----
3ef2ca
  	    vim_free(buf);
3ef2ca
  	}
3ef2ca
      }
3ef2ca
!     return OK;
3ef2ca
  }
3ef2ca
  
3ef2ca
  /*
3ef2ca
*** ../vim-7.4.204/src/version.c	2014-03-12 20:17:47.752982126 +0100
3ef2ca
--- src/version.c	2014-03-12 21:09:16.273029451 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     205,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
A law to reduce crime states: "It is mandatory for a motorist with criminal
3ef2ca
intentions to stop at the city limits and telephone the chief of police as he
3ef2ca
is entering the town.
3ef2ca
		[real standing law in Washington, United States of America]
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///