Karsten Hopp fe956b
To: vim_dev@googlegroups.com
Karsten Hopp fe956b
Subject: Patch 7.3.505
Karsten Hopp fe956b
Fcc: outbox
Karsten Hopp fe956b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp fe956b
Mime-Version: 1.0
Karsten Hopp fe956b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp fe956b
Content-Transfer-Encoding: 8bit
Karsten Hopp fe956b
------------
Karsten Hopp fe956b
Karsten Hopp fe956b
Patch 7.3.505
Karsten Hopp fe956b
Problem:    Test 11 fails on MS-Windows in some versions.
Karsten Hopp fe956b
Solution:   Fix #ifdefs for whether filtering through a pipe is possible. Move
Karsten Hopp fe956b
	    setting b_no_eol_lnum back to where it was before patch 7.3.124.
Karsten Hopp fe956b
	    (David Pope)
Karsten Hopp fe956b
Files:	    src/feature.h, src/eval.c, src/ex_cmds.c, src/fileio.c
Karsten Hopp fe956b
Karsten Hopp fe956b
Karsten Hopp fe956b
*** ../vim-7.3.504/src/feature.h	2011-10-20 21:09:25.000000000 +0200
Karsten Hopp fe956b
--- src/feature.h	2012-04-25 16:44:26.000000000 +0200
Karsten Hopp fe956b
***************
Karsten Hopp fe956b
*** 1316,1318 ****
Karsten Hopp fe956b
--- 1316,1326 ----
Karsten Hopp fe956b
  #ifdef FEAT_NORMAL
Karsten Hopp fe956b
  # define FEAT_PERSISTENT_UNDO
Karsten Hopp fe956b
  #endif
Karsten Hopp fe956b
+ 
Karsten Hopp fe956b
+ /*
Karsten Hopp fe956b
+  * +filterpipe
Karsten Hopp fe956b
+  */
Karsten Hopp fe956b
+ #if (defined(UNIX) && !defined(USE_SYSTEM)) \
Karsten Hopp fe956b
+ 	    || (defined(WIN3264) && defined(FEAT_GUI_W32))
Karsten Hopp fe956b
+ # define FEAT_FILTERPIPE
Karsten Hopp fe956b
+ #endif
Karsten Hopp fe956b
*** ../vim-7.3.504/src/eval.c	2012-04-05 16:53:55.000000000 +0200
Karsten Hopp fe956b
--- src/eval.c	2012-04-25 16:43:53.000000000 +0200
Karsten Hopp fe956b
***************
Karsten Hopp fe956b
*** 12090,12096 ****
Karsten Hopp fe956b
  #ifdef FEAT_SEARCHPATH
Karsten Hopp fe956b
  	"file_in_path",
Karsten Hopp fe956b
  #endif
Karsten Hopp fe956b
! #if (defined(UNIX) && !defined(USE_SYSTEM)) || defined(WIN3264)
Karsten Hopp fe956b
  	"filterpipe",
Karsten Hopp fe956b
  #endif
Karsten Hopp fe956b
  #ifdef FEAT_FIND_ID
Karsten Hopp fe956b
--- 12090,12096 ----
Karsten Hopp fe956b
  #ifdef FEAT_SEARCHPATH
Karsten Hopp fe956b
  	"file_in_path",
Karsten Hopp fe956b
  #endif
Karsten Hopp fe956b
! #ifdef FEAT_FILTERPIPE
Karsten Hopp fe956b
  	"filterpipe",
Karsten Hopp fe956b
  #endif
Karsten Hopp fe956b
  #ifdef FEAT_FIND_ID
Karsten Hopp fe956b
*** ../vim-7.3.504/src/ex_cmds.c	2012-04-25 12:57:23.000000000 +0200
Karsten Hopp fe956b
--- src/ex_cmds.c	2012-04-25 16:46:02.000000000 +0200
Karsten Hopp fe956b
***************
Karsten Hopp fe956b
*** 1113,1119 ****
Karsten Hopp fe956b
      if (do_out)
Karsten Hopp fe956b
  	shell_flags |= SHELL_DOOUT;
Karsten Hopp fe956b
  
Karsten Hopp fe956b
! #if (!defined(USE_SYSTEM) && defined(UNIX)) || defined(WIN3264)
Karsten Hopp fe956b
      if (!do_in && do_out && !p_stmp)
Karsten Hopp fe956b
      {
Karsten Hopp fe956b
  	/* Use a pipe to fetch stdout of the command, do not use a temp file. */
Karsten Hopp fe956b
--- 1113,1119 ----
Karsten Hopp fe956b
      if (do_out)
Karsten Hopp fe956b
  	shell_flags |= SHELL_DOOUT;
Karsten Hopp fe956b
  
Karsten Hopp fe956b
! #ifdef FEAT_FILTERPIPE
Karsten Hopp fe956b
      if (!do_in && do_out && !p_stmp)
Karsten Hopp fe956b
      {
Karsten Hopp fe956b
  	/* Use a pipe to fetch stdout of the command, do not use a temp file. */
Karsten Hopp fe956b
*** ../vim-7.3.504/src/fileio.c	2012-02-29 18:22:03.000000000 +0100
Karsten Hopp fe956b
--- src/fileio.c	2012-04-25 16:40:37.000000000 +0200
Karsten Hopp fe956b
***************
Karsten Hopp fe956b
*** 2655,2664 ****
Karsten Hopp fe956b
      }
Karsten Hopp fe956b
  #endif
Karsten Hopp fe956b
  
Karsten Hopp fe956b
-     /* Reset now, following writes should not omit the EOL.  Also, the line
Karsten Hopp fe956b
-      * number will become invalid because of edits. */
Karsten Hopp fe956b
-     curbuf->b_no_eol_lnum = 0;
Karsten Hopp fe956b
- 
Karsten Hopp fe956b
      if (recoverymode && error)
Karsten Hopp fe956b
  	return FAIL;
Karsten Hopp fe956b
      return OK;
Karsten Hopp fe956b
--- 2655,2660 ----
Karsten Hopp fe956b
***************
Karsten Hopp fe956b
*** 5098,5103 ****
Karsten Hopp fe956b
--- 5094,5101 ----
Karsten Hopp fe956b
      {
Karsten Hopp fe956b
  	aco_save_T	aco;
Karsten Hopp fe956b
  
Karsten Hopp fe956b
+ 	curbuf->b_no_eol_lnum = 0;  /* in case it was set by the previous read */
Karsten Hopp fe956b
+ 
Karsten Hopp fe956b
  	/*
Karsten Hopp fe956b
  	 * Apply POST autocommands.
Karsten Hopp fe956b
  	 * Careful: The autocommands may call buf_write() recursively!
Karsten Hopp fe956b
*** ../vim-7.3.504/src/version.c	2012-04-25 12:57:23.000000000 +0200
Karsten Hopp fe956b
--- src/version.c	2012-04-25 16:49:50.000000000 +0200
Karsten Hopp fe956b
***************
Karsten Hopp fe956b
*** 716,717 ****
Karsten Hopp fe956b
--- 716,719 ----
Karsten Hopp fe956b
  {   /* Add new patch number below this line */
Karsten Hopp fe956b
+ /**/
Karsten Hopp fe956b
+     505,
Karsten Hopp fe956b
  /**/
Karsten Hopp fe956b
Karsten Hopp fe956b
-- 
Karsten Hopp fe956b
Lose weight, NEVER Diet again with
Karsten Hopp fe956b
                  The "Invisible Weight Loss Patch"
Karsten Hopp fe956b
						(spam e-mail)
Karsten Hopp fe956b
Karsten Hopp fe956b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp fe956b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp fe956b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp fe956b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///