diff options
author | Eduardo Chappa <chappa@washington.edu> | 2016-11-16 20:32:27 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2016-11-16 20:32:27 -0700 |
commit | 23a4eb6e84eaf355f4b4b2f6e6e308fb10a14b7d (patch) | |
tree | 3fa9d8eb26904a849885bfd55f557f9f21a0694a /pico/composer.c | |
parent | 2217d0d0ad8f52200c883015dc6848f5e743e86e (diff) | |
download | alpine-23a4eb6e84eaf355f4b4b2f6e6e308fb10a14b7d.tar.xz |
* Several improvements and bug fixes related to the color support
in Pico.
Diffstat (limited to 'pico/composer.c')
-rw-r--r-- | pico/composer.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pico/composer.c b/pico/composer.c index 0776c492..1ecddd79 100644 --- a/pico/composer.c +++ b/pico/composer.c @@ -2773,6 +2773,12 @@ PaintHeader(int line, /* physical line on screen */ UCS buf[NLINE]; UCS *bufp; int i, e, w; + COLOR_PAIR *lastc = NULL; + + if(Pmaster && Pmaster->colors){ + lastc = pico_get_cur_color(); + pico_set_colorp(Pmaster->colors->ntcp, PSC_NONE); + } if(clear) pclear(COMPOSER_TOP_LINE, ComposerTopLine-1); @@ -2857,6 +2863,9 @@ PaintHeader(int line, /* physical line on screen */ } display_delimiter(ComposerEditing ? 0 : 1); + + if(lastc) + pico_set_colorp(lastc, PSC_NONE); } @@ -3361,6 +3370,12 @@ void display_delimiter(int state) { UCS *bufp, *buf; + COLOR_PAIR *lastc = NULL; + + if(Pmaster && Pmaster->colors){ + lastc = pico_get_cur_color(); + pico_set_colorp(Pmaster->colors->ntcp, PSC_NONE); + } if(ComposerTopLine - 1 >= BOTTOM()) /* silently forget it */ return; @@ -3396,6 +3411,9 @@ display_delimiter(int state) peeol(); fs_give((void **) &buf); + + if(lastc) + pico_set_colorp(lastc, PSC_NONE); } |