aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c6
1 files changed, 6 insertions, 0 deletions
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();
}