Blame SOURCES/7.4.307

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.307
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.307 (after 7.4.305)
22c937
Problem:    Can't build without the +termresponse feature.
22c937
Solution:   Add proper #ifdefs.
22c937
Files:	    src/os_unix.c, src/term.c
22c937
22c937
22c937
*** ../vim-7.4.306/src/os_unix.c	2014-05-22 18:14:27.570224664 +0200
22c937
--- src/os_unix.c	2014-05-22 20:29:36.930059845 +0200
22c937
***************
22c937
*** 3743,3749 ****
22c937
      /* Conflicts with xterm mouse: "\033[" and "\033[M".
22c937
       * Also conflicts with the xterm termresponse, skip this if it was
22c937
       * requested already. */
22c937
!     if (!use_xterm_mouse() && !did_request_esc_sequence()
22c937
  #  ifdef FEAT_GUI
22c937
  	    && !gui.in_use
22c937
  #  endif
22c937
--- 3743,3752 ----
22c937
      /* Conflicts with xterm mouse: "\033[" and "\033[M".
22c937
       * Also conflicts with the xterm termresponse, skip this if it was
22c937
       * requested already. */
22c937
!     if (!use_xterm_mouse()
22c937
! #  ifdef FEAT_TERMRESPONSE
22c937
! 	    && !did_request_esc_sequence()
22c937
! #  endif
22c937
  #  ifdef FEAT_GUI
22c937
  	    && !gui.in_use
22c937
  #  endif
22c937
***************
22c937
*** 3758,3764 ****
22c937
  # endif
22c937
  # ifdef FEAT_MOUSE_PTERM
22c937
      /* same as the dec mouse */
22c937
!     if (!use_xterm_mouse() && !did_request_esc_sequence()
22c937
  #  ifdef FEAT_GUI
22c937
  	    && !gui.in_use
22c937
  #  endif
22c937
--- 3761,3770 ----
22c937
  # endif
22c937
  # ifdef FEAT_MOUSE_PTERM
22c937
      /* same as the dec mouse */
22c937
!     if (!use_xterm_mouse()
22c937
! #  ifdef FEAT_TERMRESPONSE
22c937
! 	    && !did_request_esc_sequence()
22c937
! #  endif
22c937
  #  ifdef FEAT_GUI
22c937
  	    && !gui.in_use
22c937
  #  endif
22c937
***************
22c937
*** 3773,3779 ****
22c937
  # endif
22c937
  # ifdef FEAT_MOUSE_URXVT
22c937
      /* same as the dec mouse */
22c937
!     if (use_xterm_mouse() == 3 && !did_request_esc_sequence()
22c937
  #  ifdef FEAT_GUI
22c937
  	    && !gui.in_use
22c937
  #  endif
22c937
--- 3779,3788 ----
22c937
  # endif
22c937
  # ifdef FEAT_MOUSE_URXVT
22c937
      /* same as the dec mouse */
22c937
!     if (use_xterm_mouse() == 3
22c937
! #  ifdef FEAT_TERMRESPONSE
22c937
! 	    && !did_request_esc_sequence()
22c937
! #  endif
22c937
  #  ifdef FEAT_GUI
22c937
  	    && !gui.in_use
22c937
  #  endif
22c937
*** ../vim-7.4.306/src/term.c	2014-05-22 18:14:27.570224664 +0200
22c937
--- src/term.c	2014-05-22 20:28:34.922061106 +0200
22c937
***************
22c937
*** 3311,3317 ****
22c937
      }
22c937
  }
22c937
  
22c937
! #if defined(UNIX) || defined(PROTO)
22c937
  /*
22c937
   * Return TRUE when the xterm version was requested or anything else that
22c937
   * would send an ESC sequence back to Vim.
22c937
--- 3311,3318 ----
22c937
      }
22c937
  }
22c937
  
22c937
! #if defined(FEAT_TERMRESPONSE) || defined(PROTO)
22c937
! # if defined(UNIX) || defined(PROTO)
22c937
  /*
22c937
   * Return TRUE when the xterm version was requested or anything else that
22c937
   * would send an ESC sequence back to Vim.
22c937
***************
22c937
*** 3327,3341 ****
22c937
      if (u7_status == U7_GET)
22c937
  	u7_status = 0;
22c937
      return crv_status == CRV_SENT || u7_status == U7_SENT
22c937
! # if defined(FEAT_TERMRESPONSE)
22c937
! 	|| xt_index_out > xt_index_in
22c937
! # endif
22c937
! 	;
22c937
  }
22c937
! #endif
22c937
  
22c937
  
22c937
- #if defined(FEAT_TERMRESPONSE) || defined(PROTO)
22c937
  /*
22c937
   * Request version string (for xterm) when needed.
22c937
   * Only do this after switching to raw mode, otherwise the result will be
22c937
--- 3328,3338 ----
22c937
      if (u7_status == U7_GET)
22c937
  	u7_status = 0;
22c937
      return crv_status == CRV_SENT || u7_status == U7_SENT
22c937
! 						|| xt_index_out > xt_index_in;
22c937
  }
22c937
! # endif
22c937
  
22c937
  
22c937
  /*
22c937
   * Request version string (for xterm) when needed.
22c937
   * Only do this after switching to raw mode, otherwise the result will be
22c937
*** ../vim-7.4.306/src/version.c	2014-05-22 18:59:54.510169240 +0200
22c937
--- src/version.c	2014-05-22 21:20:36.665997658 +0200
22c937
***************
22c937
*** 736,737 ****
22c937
--- 736,739 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     307,
22c937
  /**/
22c937
22c937
-- 
22c937
Some of the well known MS-Windows errors:
22c937
	ESLEEP		Operator fell asleep
22c937
	ENOERR		No error yet
22c937
	EDOLLAR		OS too expensive
22c937
	EWINDOWS	MS-Windows loaded, system in danger
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///