diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-12-01 21:07:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-12-01 21:07:20 +0100 |
commit | a7c54cfcf825e8e99db03f4ccdb1a32cd0714c52 (patch) | |
tree | 2967da1b4011b77a7ea95da8d06f539dd675c7e7 /src/libvterm | |
parent | 97ce419201421f65f4764549ed80307a7ef9c7a6 (diff) |
patch 8.0.1362: terminal window colors wrong when using Terminal highlightingv8.0.1362
Problem: Terminal window colors wrong when using Terminal highlighting.
Solution: Set ansi_index when setting the default color. Also cache the
color index for Terminal. (Ozaki Kiichi, closes #2393)
Diffstat (limited to 'src/libvterm')
-rw-r--r-- | src/libvterm/src/pen.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libvterm/src/pen.c b/src/libvterm/src/pen.c index e9a6de9bd0..38c7a6e089 100644 --- a/src/libvterm/src/pen.c +++ b/src/libvterm/src/pen.c @@ -213,9 +213,7 @@ void vterm_state_get_palette_color(const VTermState *state, int index, VTermColo void vterm_state_set_default_colors(VTermState *state, const VTermColor *default_fg, const VTermColor *default_bg) { state->default_fg = *default_fg; - state->default_fg.ansi_index = VTERM_ANSI_INDEX_DEFAULT; state->default_bg = *default_bg; - state->default_bg.ansi_index = VTERM_ANSI_INDEX_DEFAULT; } void vterm_state_set_palette_color(VTermState *state, int index, const VTermColor *col) |