From 80d61fb87be5ef96b1a28dc88699ade4aa7c83df Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sat, 9 May 2015 22:23:54 +0200 Subject: tui: make termkey use utf-8 mode when &encoding=utf-8 #2469 --- src/nvim/ui.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nvim/ui.c') diff --git a/src/nvim/ui.c b/src/nvim/ui.c index e22ef6692d..088055777a 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -113,6 +113,11 @@ void ui_set_icon(char *icon) UI_CALL(flush); } +void ui_update_encoding(void) +{ + UI_CALL(set_encoding, (char*)p_enc); +} + // May update the shape of the cursor. void ui_cursor_shape(void) { @@ -183,6 +188,7 @@ void ui_attach(UI *ui) } uis[ui_count++] = ui; + ui_update_encoding(); ui_refresh(); } -- cgit