diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-02-05 16:17:23 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-02-05 19:41:38 +0100 |
commit | baf93d96063ceab109ecf16046a51e861a9c2c26 (patch) | |
tree | 206993aff9892e2beee704c84448221accebdb15 /src/nvim/ui.c | |
parent | 36378c33c6ca6b5c906b8ab326db508feb32c859 (diff) | |
download | rneovim-baf93d96063ceab109ecf16046a51e861a9c2c26.tar.gz rneovim-baf93d96063ceab109ecf16046a51e861a9c2c26.tar.bz2 rneovim-baf93d96063ceab109ecf16046a51e861a9c2c26.zip |
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.
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, |