jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.359

073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.359
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.359
073263
Problem:    When 'ttymouse' is set to 'uxterm' the xterm version is not
073263
	    requested. (Tomas Janousek)
073263
Solution:   Do not mark uxterm as a conflict mouse and add
073263
	    resume_get_esc_sequence().
073263
Files:	    src/term.c, src/os_unix.c, src/proto/term.pro
073263
073263
073263
*** ../vim-7.4.358/src/term.c	2014-05-22 21:22:15.361995652 +0200
073263
--- src/term.c	2014-07-09 18:49:57.127730739 +0200
073263
***************
073263
*** 3330,3335 ****
073263
--- 3330,3348 ----
073263
      return crv_status == CRV_SENT || u7_status == U7_SENT
073263
  						|| xt_index_out > xt_index_in;
073263
  }
073263
+ 
073263
+ /*
073263
+  * If requesting the version was disabled in did_request_esc_sequence(),
073263
+  * enable it again.
073263
+  */
073263
+     void
073263
+ resume_get_esc_sequence()
073263
+ {
073263
+     if (crv_status == 0)
073263
+ 	crv_status = CRV_GET;
073263
+     if (u7_status == 0)
073263
+ 	u7_status = U7_GET;
073263
+ }
073263
  # endif
073263
  
073263
  
073263
*** ../vim-7.4.358/src/os_unix.c	2014-05-22 21:22:15.361995652 +0200
073263
--- src/os_unix.c	2014-07-09 18:56:58.483722175 +0200
073263
***************
073263
*** 3780,3788 ****
073263
  # ifdef FEAT_MOUSE_URXVT
073263
      /* same as the dec mouse */
073263
      if (use_xterm_mouse() == 3
073263
- #  ifdef FEAT_TERMRESPONSE
073263
- 	    && !did_request_esc_sequence()
073263
- #  endif
073263
  #  ifdef FEAT_GUI
073263
  	    && !gui.in_use
073263
  #  endif
073263
--- 3780,3785 ----
073263
***************
073263
*** 3797,3803 ****
073263
  	    mch_setmouse(FALSE);
073263
  	    setmouse();
073263
  	}
073263
! 	xterm_conflict_mouse = TRUE;
073263
      }
073263
      else
073263
  	del_mouse_termcode(KS_URXVT_MOUSE);
073263
--- 3794,3801 ----
073263
  	    mch_setmouse(FALSE);
073263
  	    setmouse();
073263
  	}
073263
! 	/* It's OK to request the xterm version for uxterm. */
073263
! 	resume_get_esc_sequence();
073263
      }
073263
      else
073263
  	del_mouse_termcode(KS_URXVT_MOUSE);
073263
*** ../vim-7.4.358/src/proto/term.pro	2014-05-22 18:14:27.570224664 +0200
073263
--- src/proto/term.pro	2014-07-09 18:53:31.827726375 +0200
073263
***************
073263
*** 35,40 ****
073263
--- 35,41 ----
073263
  void starttermcap __ARGS((void));
073263
  void stoptermcap __ARGS((void));
073263
  int did_request_esc_sequence __ARGS((void));
073263
+ void resume_get_esc_sequence __ARGS((void));
073263
  void may_req_termresponse __ARGS((void));
073263
  void may_req_ambiguous_char_width __ARGS((void));
073263
  int swapping_screen __ARGS((void));
073263
*** ../vim-7.4.358/src/version.c	2014-07-09 17:51:46.075801693 +0200
073263
--- src/version.c	2014-07-09 18:50:55.515729552 +0200
073263
***************
073263
*** 736,737 ****
073263
--- 736,739 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     359,
073263
  /**/
073263
073263
-- 
073263
An indication you must be a manager:
073263
You give constructive feedback to your dog.
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///