diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-05 00:14:11 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-29 10:08:45 +0300 |
commit | 2c8ad276523489223d2d804075a19367280b0f10 (patch) | |
tree | c7c8c720db532d4fb225d06321c5a64a9847750c /src | |
parent | c6c48e8672ab6adbf78453e2b133fe3bd2ee1eb5 (diff) | |
download | rneovim-2c8ad276523489223d2d804075a19367280b0f10.tar.gz rneovim-2c8ad276523489223d2d804075a19367280b0f10.tar.bz2 rneovim-2c8ad276523489223d2d804075a19367280b0f10.zip |
ascii: Readd DEL_STR define
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ascii.h | 1 | ||||
-rw-r--r-- | src/nvim/tui/tui.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ascii.h b/src/nvim/ascii.h index 37b83efb61..adde91f9ec 100644 --- a/src/nvim/ascii.h +++ b/src/nvim/ascii.h @@ -26,6 +26,7 @@ #define ESC '\033' #define ESC_STR "\033" #define DEL 0x7f +#define DEL_STR "\177" #define CSI 0x9b // Control Sequence Introducer #define CSI_STR "\233" #define DCS 0x90 /* Device Control String */ diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 9fbbe8be92..55936ad58d 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -1015,7 +1015,7 @@ static const char *tui_tk_ti_getstr(const char *name, const char *value, ILOG("libtermkey:kdch1=%s", value); // Vim: "If <BS> and <DEL> are now the same, redefine <DEL>." if (stty_erase != NULL && value != NULL && strcmp(stty_erase, value) == 0) { - return stty_erase[0] == DEL ? (char *)CTRL_H_STR : (char *)DEL_STR; + return stty_erase[0] == DEL ? CTRL_H_STR : DEL_STR; } } |