]> granicus.if.org Git - nethack/commitdiff
don't highlight the leading space before gold field on the status line
authornhmall <nhmall@nethack.org>
Mon, 21 May 2018 13:35:38 +0000 (09:35 -0400)
committernhmall <nhmall@nethack.org>
Mon, 21 May 2018 13:35:38 +0000 (09:35 -0400)
doc/fixes36.2
win/tty/wintty.c

index f22af782ea90dd0e668f91ab6bbae35883a07ab4..cfe7190f802bc0e583c9af30e36f0473563b3aaa 100644 (file)
@@ -23,6 +23,8 @@ targetting with a polearm could give away location of hidden monster
 Fixes to Post-3.6.1 Problems that Were Exposed Via git Repository
 ------------------------------------------------------------------
 fix access violation when --debug:xxxx has no other args after it
+Setting the inverse attribute for gold had the space before "$:" 
+       getting highlighted along with the gold field
 
 
 Platform- and/or Interface-Specific Fixes
index fc40dcc75b0cb2f09f6634c9a5a8e0dff6fa3f27..42dad00c2996b28be9c890ff330b552bdfd46721 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 wintty.c        $NHDT-Date: 1526429383 2018/05/16 00:09:43 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.166 $ */
+/* NetHack 3.6 wintty.c        $NHDT-Date: 1526909614 2018/05/21 13:33:34 $  $NHDT-Branch: NetHack-3.6.2 $:$NHDT-Revision: 1.167 $ */
 /* Copyright (c) David Cohrs, 1991                                */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -4175,6 +4175,10 @@ render_status(VOID_ARGS)
                      * +-----------+
                      */
                     if (iflags.hilite_delta) {
+                        if (*text == ' ') {
+                            tty_putstatusfield(nullfield, " ", x++, y);
+                            text++;
+                        }
                         /* multiple attributes can be in effect concurrently */
                         Begin_Attr(attridx);
                         if (coloridx != NO_COLOR && coloridx != CLR_MAX)