jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.359
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.359
3ef2ca
Problem:    When 'ttymouse' is set to 'uxterm' the xterm version is not
3ef2ca
	    requested. (Tomas Janousek)
3ef2ca
Solution:   Do not mark uxterm as a conflict mouse and add
3ef2ca
	    resume_get_esc_sequence().
3ef2ca
Files:	    src/term.c, src/os_unix.c, src/proto/term.pro
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.358/src/term.c	2014-05-22 21:22:15.361995652 +0200
3ef2ca
--- src/term.c	2014-07-09 18:49:57.127730739 +0200
3ef2ca
***************
3ef2ca
*** 3330,3335 ****
3ef2ca
--- 3330,3348 ----
3ef2ca
      return crv_status == CRV_SENT || u7_status == U7_SENT
3ef2ca
  						|| xt_index_out > xt_index_in;
3ef2ca
  }
3ef2ca
+ 
3ef2ca
+ /*
3ef2ca
+  * If requesting the version was disabled in did_request_esc_sequence(),
3ef2ca
+  * enable it again.
3ef2ca
+  */
3ef2ca
+     void
3ef2ca
+ resume_get_esc_sequence()
3ef2ca
+ {
3ef2ca
+     if (crv_status == 0)
3ef2ca
+ 	crv_status = CRV_GET;
3ef2ca
+     if (u7_status == 0)
3ef2ca
+ 	u7_status = U7_GET;
3ef2ca
+ }
3ef2ca
  # endif
3ef2ca
  
3ef2ca
  
3ef2ca
*** ../vim-7.4.358/src/os_unix.c	2014-05-22 21:22:15.361995652 +0200
3ef2ca
--- src/os_unix.c	2014-07-09 18:56:58.483722175 +0200
3ef2ca
***************
3ef2ca
*** 3780,3788 ****
3ef2ca
  # ifdef FEAT_MOUSE_URXVT
3ef2ca
      /* same as the dec mouse */
3ef2ca
      if (use_xterm_mouse() == 3
3ef2ca
- #  ifdef FEAT_TERMRESPONSE
3ef2ca
- 	    && !did_request_esc_sequence()
3ef2ca
- #  endif
3ef2ca
  #  ifdef FEAT_GUI
3ef2ca
  	    && !gui.in_use
3ef2ca
  #  endif
3ef2ca
--- 3780,3785 ----
3ef2ca
***************
3ef2ca
*** 3797,3803 ****
3ef2ca
  	    mch_setmouse(FALSE);
3ef2ca
  	    setmouse();
3ef2ca
  	}
3ef2ca
! 	xterm_conflict_mouse = TRUE;
3ef2ca
      }
3ef2ca
      else
3ef2ca
  	del_mouse_termcode(KS_URXVT_MOUSE);
3ef2ca
--- 3794,3801 ----
3ef2ca
  	    mch_setmouse(FALSE);
3ef2ca
  	    setmouse();
3ef2ca
  	}
3ef2ca
! 	/* It's OK to request the xterm version for uxterm. */
3ef2ca
! 	resume_get_esc_sequence();
3ef2ca
      }
3ef2ca
      else
3ef2ca
  	del_mouse_termcode(KS_URXVT_MOUSE);
3ef2ca
*** ../vim-7.4.358/src/proto/term.pro	2014-05-22 18:14:27.570224664 +0200
3ef2ca
--- src/proto/term.pro	2014-07-09 18:53:31.827726375 +0200
3ef2ca
***************
3ef2ca
*** 35,40 ****
3ef2ca
--- 35,41 ----
3ef2ca
  void starttermcap __ARGS((void));
3ef2ca
  void stoptermcap __ARGS((void));
3ef2ca
  int did_request_esc_sequence __ARGS((void));
3ef2ca
+ void resume_get_esc_sequence __ARGS((void));
3ef2ca
  void may_req_termresponse __ARGS((void));
3ef2ca
  void may_req_ambiguous_char_width __ARGS((void));
3ef2ca
  int swapping_screen __ARGS((void));
3ef2ca
*** ../vim-7.4.358/src/version.c	2014-07-09 17:51:46.075801693 +0200
3ef2ca
--- src/version.c	2014-07-09 18:50:55.515729552 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     359,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
An indication you must be a manager:
3ef2ca
You give constructive feedback to your dog.
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    ///