diff options
author | Timo Sirainen <cras@irssi.org> | 2001-01-14 18:57:39 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-01-14 18:57:39 +0000 |
commit | 51a4e8bcb94f50166259e3e741503c4e0b03e7a8 (patch) | |
tree | 846145599c08bc1f9cac4eed338d36de2b9365af /src/fe-common/core | |
parent | 6f370cf6ffbdfe1bf865d78bdd0f0c3924bef2bb (diff) | |
download | irssi-51a4e8bcb94f50166259e3e741503c4e0b03e7a8.zip |
Use | instead of + when playing with ansi colors. Doesn't change
anything really, except if someone now wants to change ansi colors to
some bright colors it's easier..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1118 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/formats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c index 759becdf..901fdb3f 100644 --- a/src/fe-common/core/formats.c +++ b/src/fe-common/core/formats.c @@ -525,10 +525,10 @@ static char *get_ansi_color(THEME_REC *theme, char *str, break; default: if (num >= 30 && num <= 37) - fg = (fg & 0xf8) + ansitab[num-30]; + fg = (fg & 0xf8) | ansitab[num-30]; if (num >= 40 && num <= 47) { if (bg == -1) bg = 0; - bg = (bg & 0xf8) + ansitab[num-40]; + bg = (bg & 0xf8) | ansitab[num-40]; } break; } |