From baf93d96063ceab109ecf16046a51e861a9c2c26 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Tue, 5 Feb 2019 16:17:23 +0100 Subject: UI: always use contrete colors for default_colors_set But add an escape hatch needed for external TUI, so it still can use terminal emulator defaults. --- src/nvim/ui.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nvim/ui.c') diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 6a7cbd36cc..9b2f9c6fe6 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -310,6 +310,9 @@ void ui_set_ext_option(UI *ui, UIExtension ext, bool active) ui->option_set(ui, cstr_as_string((char *)ui_ext_names[ext]), BOOLEAN_OBJ(active)); } + if (ext == kUITermColors) { + ui_default_colors_set(); + } } void ui_line(ScreenGrid *grid, int row, int startcol, int endcol, int clearcol, -- cgit