bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wrong background color after leaving mutt


From: Dick Streefland
Subject: Wrong background color after leaving mutt
Date: Thu, 5 May 2016 11:46:59 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

After upgrading Ubuntu from 15.10 to 16.04, I noticed a problem with
the background color. When I start and leave "mutt" in a terminal
window with a white background, the line with the next prompt will
have a black background. The next "less" command will also have a
black background. The problem goes away after a "reset" command.

This behavior seems to be caused by the following change and reverting
it fixes the problem for me:

20151017
        + remove an early-return from _nc_do_color, which can interfere with
          data needed by bkgd when ncurses is configured with extended colors
          (patch by Denis Tikhomirov).

--- ncurses-6.0-20151010+/ncurses/base/lib_color.c      2015-08-22 
22:38:58.000000000 +0000
+++ ncurses-6.0-20151017/ncurses/base/lib_color.c       2015-10-17 
20:39:18.000000000 +0000
@@ -45,7 +45,7 @@
 #define CUR SP_TERMTYPE
 #endif
 
-MODULE_ID("$Id: lib_color.c,v 1.111 2015/08/22 22:38:58 tom Exp $")
+MODULE_ID("$Id: lib_color.c,v 1.112 2015/10/17 20:39:18 Denis.Tikhomirov Exp 
$")
 
 #ifdef USE_TERM_DRIVER
 #define CanChange      InfoOf(SP_PARM).canchange
@@ -858,8 +858,6 @@
        }
     } else {
        reset_color_pair(NCURSES_SP_ARG);
-       if (old_pair < 0)
-           return;
     }
 
 #if NCURSES_EXT_FUNCS

-- 
Dick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]