0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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().
This commit is contained in:
Bram Moolenaar
2014-07-09 19:13:49 +02:00
parent 6bf5548df2
commit 0d1e8c1203
4 changed files with 18 additions and 4 deletions

View File

@@ -3780,9 +3780,6 @@ check_mouse_termcode()
# ifdef FEAT_MOUSE_URXVT # ifdef FEAT_MOUSE_URXVT
/* same as the dec mouse */ /* same as the dec mouse */
if (use_xterm_mouse() == 3 if (use_xterm_mouse() == 3
# ifdef FEAT_TERMRESPONSE
&& !did_request_esc_sequence()
# endif
# ifdef FEAT_GUI # ifdef FEAT_GUI
&& !gui.in_use && !gui.in_use
# endif # endif
@@ -3797,7 +3794,8 @@ check_mouse_termcode()
mch_setmouse(FALSE); mch_setmouse(FALSE);
setmouse(); setmouse();
} }
xterm_conflict_mouse = TRUE; /* It's OK to request the xterm version for uxterm. */
resume_get_esc_sequence();
} }
else else
del_mouse_termcode(KS_URXVT_MOUSE); del_mouse_termcode(KS_URXVT_MOUSE);

View File

@@ -35,6 +35,7 @@ void settmode __ARGS((int tmode));
void starttermcap __ARGS((void)); void starttermcap __ARGS((void));
void stoptermcap __ARGS((void)); void stoptermcap __ARGS((void));
int did_request_esc_sequence __ARGS((void)); int did_request_esc_sequence __ARGS((void));
void resume_get_esc_sequence __ARGS((void));
void may_req_termresponse __ARGS((void)); void may_req_termresponse __ARGS((void));
void may_req_ambiguous_char_width __ARGS((void)); void may_req_ambiguous_char_width __ARGS((void));
int swapping_screen __ARGS((void)); int swapping_screen __ARGS((void));

View File

@@ -3330,6 +3330,19 @@ did_request_esc_sequence()
return crv_status == CRV_SENT || u7_status == U7_SENT return crv_status == CRV_SENT || u7_status == U7_SENT
|| xt_index_out > xt_index_in; || xt_index_out > xt_index_in;
} }
/*
* If requesting the version was disabled in did_request_esc_sequence(),
* enable it again.
*/
void
resume_get_esc_sequence()
{
if (crv_status == 0)
crv_status = CRV_GET;
if (u7_status == 0)
u7_status = U7_GET;
}
# endif # endif

View File

@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
359,
/**/ /**/
358, 358,
/**/ /**/