diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-06-07 17:08:17 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-06-07 17:08:17 +0200 |
commit | 17e451ae55ed666cdc4a2b7051f027a459001335 (patch) | |
tree | a1f58e92fe95692e8048d2a41caebaa38de64d5b /src | |
parent | 9957565680abaff172e9038a2fa6607d786f64f5 (diff) | |
download | weechat-17e451ae55ed666cdc4a2b7051f027a459001335.zip |
core: fix color display of last color number + 1 (closes #101)
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/curses/gui-curses-color.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-color.c b/src/gui/curses/gui-curses-color.c index 1af361e01..4280a0493 100644 --- a/src/gui/curses/gui-curses-color.c +++ b/src/gui/curses/gui-curses-color.c @@ -383,9 +383,9 @@ gui_color_get_pair (int fg, int bg) return COLOR_WHITE; /* if invalid color, use default fg/bg */ - if (fg > gui_color_term_colors) + if (fg >= gui_color_term_colors) fg = -1; - if (bg > gui_color_term_colors) + if (bg >= gui_color_term_colors) bg = -1; /* compute index for gui_color_pairs with foreground and background */ |