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