diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2015-06-26 12:49:14 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-11-05 14:49:24 +0100 |
commit | 5072ab9e5b75963d2fa831a6eb84ac04a4182659 (patch) | |
tree | e46907e20ba1c09d6d55b8da2341c89eb0066a18 /src/nvim/tui/input.c | |
parent | 4804001aff408558b8dd60ae3ba4cd9b84a5b949 (diff) | |
download | rneovim-5072ab9e5b75963d2fa831a6eb84ac04a4182659.tar.gz rneovim-5072ab9e5b75963d2fa831a6eb84ac04a4182659.tar.bz2 rneovim-5072ab9e5b75963d2fa831a6eb84ac04a4182659.zip |
encoding: cleanup mbyte.c given fixed encoding=utf-8
Eliminate mb_init():
Set "enc_utf" and "has_mbyte" early. Eliminate "enc_unicode" and "enc_latin1like".
init_chartab() and screenalloc() are already invoked elsewhere
in the initialization process.
The EncodingChanged autocmd cannot be triggered.
At initialization, there is no spellfiles to reload
Diffstat (limited to 'src/nvim/tui/input.c')
-rw-r--r-- | src/nvim/tui/input.c | 4 |
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); |