aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2015-06-26 12:49:14 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2016-11-05 14:49:24 +0100
commit5072ab9e5b75963d2fa831a6eb84ac04a4182659 (patch)
treee46907e20ba1c09d6d55b8da2341c89eb0066a18 /src/nvim/screen.c
parent4804001aff408558b8dd60ae3ba4cd9b84a5b949 (diff)
downloadrneovim-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/screen.c')
-rw-r--r--src/nvim/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 3e4d016fe7..7fd08b6d7b 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -5292,7 +5292,7 @@ void screen_puts_len(char_u *text, int textlen, int row, int col, int attr)
int force_redraw_next = FALSE;
int need_redraw;
- const int l_has_mbyte = has_mbyte;
+ const bool l_has_mbyte = has_mbyte;
const bool l_enc_utf8 = enc_utf8;
const int l_enc_dbcs = enc_dbcs;