1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 19:53:13 +02:00

core: fix color display of last color number + 1 (closes #101)

This commit is contained in:
Sébastien Helleu
2014-06-07 17:08:17 +02:00
parent 9957565680
commit 17e451ae55
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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 */