forked from aniani/vim
updated for version 7.2b-024
This commit is contained in:
47
src/term.c
47
src/term.c
@@ -3196,11 +3196,17 @@ settmode(tmode)
|
|||||||
if (tmode != TMODE_COOK || cur_tmode != TMODE_COOK)
|
if (tmode != TMODE_COOK || cur_tmode != TMODE_COOK)
|
||||||
{
|
{
|
||||||
#ifdef FEAT_TERMRESPONSE
|
#ifdef FEAT_TERMRESPONSE
|
||||||
/* May need to check for T_CRV response and termcodes, it doesn't
|
# ifdef FEAT_GUI
|
||||||
* work in Cooked mode, an external program may get them. */
|
if (!gui.in_use && !gui.starting)
|
||||||
if (tmode != TMODE_RAW && crv_status == CRV_SENT)
|
# endif
|
||||||
(void)vpeekc_nomap();
|
{
|
||||||
check_for_codes_from_term();
|
/* May need to check for T_CRV response and termcodes, it
|
||||||
|
* doesn't work in Cooked mode, an external program may get
|
||||||
|
* them. */
|
||||||
|
if (tmode != TMODE_RAW && crv_status == CRV_SENT)
|
||||||
|
(void)vpeekc_nomap();
|
||||||
|
check_for_codes_from_term();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_MOUSE_TTY
|
#ifdef FEAT_MOUSE_TTY
|
||||||
if (tmode != TMODE_RAW)
|
if (tmode != TMODE_RAW)
|
||||||
@@ -3232,10 +3238,16 @@ starttermcap()
|
|||||||
termcap_active = TRUE;
|
termcap_active = TRUE;
|
||||||
screen_start(); /* don't know where cursor is now */
|
screen_start(); /* don't know where cursor is now */
|
||||||
#ifdef FEAT_TERMRESPONSE
|
#ifdef FEAT_TERMRESPONSE
|
||||||
may_req_termresponse();
|
# ifdef FEAT_GUI
|
||||||
/* Immediately check for a response. If t_Co changes, we don't want
|
if (!gui.in_use && !gui.starting)
|
||||||
* to redraw with wrong colors first. */
|
# endif
|
||||||
check_for_codes_from_term();
|
{
|
||||||
|
may_req_termresponse();
|
||||||
|
/* Immediately check for a response. If t_Co changes, we don't
|
||||||
|
* want to redraw with wrong colors first. */
|
||||||
|
if (crv_status != CRV_GET)
|
||||||
|
check_for_codes_from_term();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3248,12 +3260,17 @@ stoptermcap()
|
|||||||
if (termcap_active)
|
if (termcap_active)
|
||||||
{
|
{
|
||||||
#ifdef FEAT_TERMRESPONSE
|
#ifdef FEAT_TERMRESPONSE
|
||||||
/* May need to check for T_CRV response. */
|
# ifdef FEAT_GUI
|
||||||
if (crv_status == CRV_SENT)
|
if (!gui.in_use && !gui.starting)
|
||||||
(void)vpeekc_nomap();
|
# endif
|
||||||
/* Check for termcodes first, otherwise an external program may get
|
{
|
||||||
* them. */
|
/* May need to check for T_CRV response. */
|
||||||
check_for_codes_from_term();
|
if (crv_status == CRV_SENT)
|
||||||
|
(void)vpeekc_nomap();
|
||||||
|
/* Check for termcodes first, otherwise an external program may
|
||||||
|
* get them. */
|
||||||
|
check_for_codes_from_term();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
out_str(T_KE); /* stop "keypad transmit" mode */
|
out_str(T_KE); /* stop "keypad transmit" mode */
|
||||||
out_flush();
|
out_flush();
|
||||||
|
@@ -676,6 +676,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 */
|
||||||
|
/**/
|
||||||
|
24,
|
||||||
/**/
|
/**/
|
||||||
23,
|
23,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user