mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 10:02:22 +02:00
Restore term's colors setting when turning off force 256colors.
This commit is contained in:
parent
9001a97469
commit
dd98b1c772
1 changed files with 2 additions and 0 deletions
|
|
@ -453,6 +453,8 @@ void terminfo_setup_colors(TERM_REC *term, int force)
|
|||
term->TI_colors = 256;
|
||||
else if (force && term->TI_setf == NULL && term->TI_setaf == NULL)
|
||||
term->TI_colors = 8;
|
||||
else /* if we turn off force we'll need to restore the real setting */
|
||||
term->TI_colors = term_getnum(tcaps[25]);
|
||||
|
||||
if ((term->TI_setf || term->TI_setaf || force) &&
|
||||
term->TI_colors > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue