Skip to content

Commit

Permalink
patch 8.0.1611: CTRL-W in system terminal does not go to job
Browse files Browse the repository at this point in the history
Problem:    CTRL-W in system terminal does not go to job.
Solution:   Do not use CTRL-W as a terminal command in a system terminal.
  • Loading branch information
brammool committed Mar 16, 2018
1 parent 4ac31ee commit af23bad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/terminal.c
Expand Up @@ -2007,8 +2007,13 @@ terminal_loop(int blocking)
if (ctrl_break_was_pressed) if (ctrl_break_was_pressed)
mch_signal_job(curbuf->b_term->tl_job, (char_u *)"kill"); mch_signal_job(curbuf->b_term->tl_job, (char_u *)"kill");
#endif #endif
/* Was either CTRL-W (termkey) or CTRL-\ pressed? */ /* Was either CTRL-W (termkey) or CTRL-\ pressed?
if (c == (termkey == 0 ? Ctrl_W : termkey) || c == Ctrl_BSL) * Not in a system terminal. */
if ((c == (termkey == 0 ? Ctrl_W : termkey) || c == Ctrl_BSL)
#ifdef FEAT_GUI
&& !curbuf->b_term->tl_system
#endif
)
{ {
int prev_c = c; int prev_c = c;


Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -766,6 +766,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 */
/**/
1611,
/**/ /**/
1610, 1610,
/**/ /**/
Expand Down

0 comments on commit af23bad

Please sign in to comment.