Karsten Hopp af535d
To: vim-dev@vim.org
Karsten Hopp af535d
Subject: Patch 7.1.142
Karsten Hopp af535d
Fcc: outbox
Karsten Hopp af535d
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp af535d
Mime-Version: 1.0
Karsten Hopp af535d
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp af535d
Content-Transfer-Encoding: 8bit
Karsten Hopp af535d
------------
Karsten Hopp af535d
Karsten Hopp af535d
Patch 7.1.142
Karsten Hopp af535d
Problem:    ":redir @A>" doesn't work.
Karsten Hopp af535d
Solution:   Ignore the extra ">" also when appending. (James Vega)
Karsten Hopp af535d
Files:	    src/ex_docmd.c
Karsten Hopp af535d
Karsten Hopp af535d
Karsten Hopp af535d
*** ../vim-7.1.141/src/ex_docmd.c	Sun Sep 30 14:00:41 2007
Karsten Hopp af535d
--- src/ex_docmd.c	Tue Oct  9 11:09:09 2007
Karsten Hopp af535d
***************
Karsten Hopp af535d
*** 8426,8446 ****
Karsten Hopp af535d
  		    || *arg == '"')
Karsten Hopp af535d
  	    {
Karsten Hopp af535d
  		redir_reg = *arg++;
Karsten Hopp af535d
! 		if (*arg == '>' && arg[1] == '>')
Karsten Hopp af535d
  		    arg += 2;
Karsten Hopp af535d
! 		else if ((*arg == NUL || (*arg == '>' && arg[1] == NUL)) &&
Karsten Hopp af535d
! 			 (islower(redir_reg)
Karsten Hopp af535d
! # ifdef FEAT_CLIPBOARD
Karsten Hopp af535d
! 			    || redir_reg == '*'
Karsten Hopp af535d
! 			    || redir_reg == '+'
Karsten Hopp af535d
! # endif
Karsten Hopp af535d
! 			    || redir_reg == '"'))
Karsten Hopp af535d
  		{
Karsten Hopp af535d
  		    if (*arg == '>')
Karsten Hopp af535d
  			arg++;
Karsten Hopp af535d
! 
Karsten Hopp af535d
! 		    /* make register empty */
Karsten Hopp af535d
! 		    write_reg_contents(redir_reg, (char_u *)"", -1, FALSE);
Karsten Hopp af535d
  		}
Karsten Hopp af535d
  	    }
Karsten Hopp af535d
  	    if (*arg != NUL)
Karsten Hopp af535d
--- 8426,8442 ----
Karsten Hopp af535d
  		    || *arg == '"')
Karsten Hopp af535d
  	    {
Karsten Hopp af535d
  		redir_reg = *arg++;
Karsten Hopp af535d
! 		if (*arg == '>' && arg[1] == '>')  /* append */
Karsten Hopp af535d
  		    arg += 2;
Karsten Hopp af535d
! 		else
Karsten Hopp af535d
  		{
Karsten Hopp af535d
+ 		    /* Can use both "@a" and "@a>". */
Karsten Hopp af535d
  		    if (*arg == '>')
Karsten Hopp af535d
  			arg++;
Karsten Hopp af535d
! 		    /* Make register empty when not using @A-@Z and the
Karsten Hopp af535d
! 		     * command is valid. */
Karsten Hopp af535d
! 		    if (*arg == NUL && !isupper(redir_reg))
Karsten Hopp af535d
! 			write_reg_contents(redir_reg, (char_u *)"", -1, FALSE);
Karsten Hopp af535d
  		}
Karsten Hopp af535d
  	    }
Karsten Hopp af535d
  	    if (*arg != NUL)
Karsten Hopp af535d
*** ../vim-7.1.141/src/version.c	Fri Oct 19 14:32:50 2007
Karsten Hopp af535d
--- src/version.c	Fri Oct 19 16:18:36 2007
Karsten Hopp af535d
***************
Karsten Hopp af535d
*** 668,669 ****
Karsten Hopp af535d
--- 668,671 ----
Karsten Hopp af535d
  {   /* Add new patch number below this line */
Karsten Hopp af535d
+ /**/
Karsten Hopp af535d
+     142,
Karsten Hopp af535d
  /**/
Karsten Hopp af535d
Karsten Hopp af535d
-- 
Karsten Hopp af535d
hundred-and-one symptoms of being an internet addict:
Karsten Hopp af535d
36. You miss more than five meals a week downloading the latest games from
Karsten Hopp af535d
    Apogee.
Karsten Hopp af535d
Karsten Hopp af535d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp af535d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp af535d
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp af535d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///