cleanup/TUI: remove old unused code #9013

- Checks for ECHOE, ICANON were left over from Vim code. We already
  reference the symbols elsewhere without checking.
- newline_on_exit, intr_char: Both are vestigial remnants of Vim 4.x,
  not implemented in Nvim. intr_char is a termios/stty feature, it's
  probably not useful because users have other ways to configure their
  terminals.
This commit is contained in:
Justin M. Keyes
2018-09-19 07:59:09 +02:00
committed by GitHub
parent d0401e827b
commit 8b60253ce7
5 changed files with 6 additions and 21 deletions

View File

@@ -3632,12 +3632,8 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout,
}
}
need_wait_return = FALSE; /* no hit-return prompt */
if (typed == 'q' || typed == ESC || typed == Ctrl_C
#ifdef UNIX
|| typed == intr_char
#endif
) {
need_wait_return = false; // no hit-return prompt
if (typed == 'q' || typed == ESC || typed == Ctrl_C) {
got_quit = true;
break;
}