aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tui/input.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-11-05 18:12:14 +0100
committerGitHub <noreply@github.com>2016-11-05 18:12:14 +0100
commit9147331e212e8d0fff0f30344007faffd42609ee (patch)
tree6d1853a72b94ce19ba0cc163c664a9a206da0091 /src/nvim/tui/input.c
parent32d9c19e294f38a6adae6e055fc606fc3fd33f2f (diff)
parent4ab3fe8eaadb5456eeafc49df2fb0ecf71d836cc (diff)
downloadrneovim-9147331e212e8d0fff0f30344007faffd42609ee.tar.gz
rneovim-9147331e212e8d0fff0f30344007faffd42609ee.tar.bz2
rneovim-9147331e212e8d0fff0f30344007faffd42609ee.zip
Merge pull request #2905 from bfredl/utf8
Only allow encoding=utf-8 and simplify multibyte code
Diffstat (limited to 'src/nvim/tui/input.c')
-rw-r--r--src/nvim/tui/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c
index 740716f0ef..9dc66420b0 100644
--- a/src/nvim/tui/input.c
+++ b/src/nvim/tui/input.c
@@ -31,8 +31,8 @@ void term_input_init(TermInput *input, Loop *loop)
if (!term) {
term = ""; // termkey_new_abstract assumes non-null (#2745)
}
- int enc_flag = enc_utf8 ? TERMKEY_FLAG_UTF8 : TERMKEY_FLAG_RAW;
- input->tk = termkey_new_abstract(term, enc_flag);
+
+ input->tk = termkey_new_abstract(term, TERMKEY_FLAG_UTF8);
int curflags = termkey_get_canonflags(input->tk);
termkey_set_canonflags(input->tk, curflags | TERMKEY_CANON_DELBS);