From bae3c238adad2b9bbfc6a8ad340caab1c6149ed4 Mon Sep 17 00:00:00 2001 From: Gennadiy Volkov Date: Sun, 8 Mar 2020 19:55:17 +1100 Subject: color-column: Don't change fg/bg if not set explicitly eg. if your long line is a comment with green fg, and you set your column color bg red while not specifying the fg, then the result is green fg on red bg. Prior to this change the result would be default fg on red bg, thus one char in the long line of green text would look odd/wrong. Of course if you do explicitly set the column color fg to default in your theme then the result will not be what you expect - ideally we need an UNSPECIFIED color type instead of relying on DEFAULT. --- ui.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 786fdfb..4ee4589 100644 --- a/ui.h +++ b/ui.h @@ -115,4 +115,6 @@ struct UiWin { int (*window_height)(UiWin*); }; +bool is_default_color(CellColor c); + #endif -- cgit v1.2.3