Skip to content

Commit 1c7c11c

Browse files
committed
updated for version 7.4.359
Problem: When 'ttymouse' is set to 'uxterm' the xterm version is not requested. (Tomas Janousek) Solution: Do not mark uxterm as a conflict mouse and add resume_get_esc_sequence().
1 parent e2a8f58 commit 1c7c11c

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

src/os_unix.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3780,9 +3780,6 @@ check_mouse_termcode()
37803780
# ifdef FEAT_MOUSE_URXVT
37813781
/* same as the dec mouse */
37823782
if (use_xterm_mouse() == 3
3783-
# ifdef FEAT_TERMRESPONSE
3784-
&& !did_request_esc_sequence()
3785-
# endif
37863783
# ifdef FEAT_GUI
37873784
&& !gui.in_use
37883785
# endif
@@ -3797,7 +3794,8 @@ check_mouse_termcode()
37973794
mch_setmouse(FALSE);
37983795
setmouse();
37993796
}
3800-
xterm_conflict_mouse = TRUE;
3797+
/* It's OK to request the xterm version for uxterm. */
3798+
resume_get_esc_sequence();
38013799
}
38023800
else
38033801
del_mouse_termcode(KS_URXVT_MOUSE);

src/proto/term.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ void settmode __ARGS((int tmode));
3535
void starttermcap __ARGS((void));
3636
void stoptermcap __ARGS((void));
3737
int did_request_esc_sequence __ARGS((void));
38+
void resume_get_esc_sequence __ARGS((void));
3839
void may_req_termresponse __ARGS((void));
3940
void may_req_ambiguous_char_width __ARGS((void));
4041
int swapping_screen __ARGS((void));

src/term.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3330,6 +3330,19 @@ did_request_esc_sequence()
33303330
return crv_status == CRV_SENT || u7_status == U7_SENT
33313331
|| xt_index_out > xt_index_in;
33323332
}
3333+
3334+
/*
3335+
* If requesting the version was disabled in did_request_esc_sequence(),
3336+
* enable it again.
3337+
*/
3338+
void
3339+
resume_get_esc_sequence()
3340+
{
3341+
if (crv_status == 0)
3342+
crv_status = CRV_GET;
3343+
if (u7_status == 0)
3344+
u7_status = U7_GET;
3345+
}
33333346
# endif
33343347

33353348

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
359,
737739
/**/
738740
358,
739741
/**/

0 commit comments

Comments
 (0)