aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tui
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-19 07:59:09 +0200
committerGitHub <noreply@github.com>2018-09-19 07:59:09 +0200
commit8b60253ce747183a1896a8f0057519a1e2e517a1 (patch)
treed69fed82e725c2ec580cd511e4958a8d5967faae /src/nvim/tui
parentd0401e827bdeff99fc6a0fa6599cad2970bd6136 (diff)
downloadrneovim-8b60253ce747183a1896a8f0057519a1e2e517a1.tar.gz
rneovim-8b60253ce747183a1896a8f0057519a1e2e517a1.tar.bz2
rneovim-8b60253ce747183a1896a8f0057519a1e2e517a1.zip
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.
Diffstat (limited to 'src/nvim/tui')
-rw-r--r--src/nvim/tui/tui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index ace2c865dc..8e7b072b1a 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -1852,7 +1852,7 @@ static void flush_buf(UI *ui)
static const char *tui_get_stty_erase(void)
{
static char stty_erase[2] = { 0 };
-#if defined(ECHOE) && defined(ICANON) && defined(HAVE_TERMIOS_H)
+#if defined(HAVE_TERMIOS_H)
struct termios t;
if (tcgetattr(input_global_fd(), &t) != -1) {
stty_erase[0] = (char)t.c_cc[VERASE];