From: nhmall Date: Thu, 13 Feb 2020 05:59:04 +0000 (-0500) Subject: eliminate an odd line wrapping noticed on windows X-Git-Tag: NetHack-3.7.0_WIP-2020-02-14~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ca2cdbd86bf5124a3d0d3e5134bb48a9ec8db38;p=nethack eliminate an odd line wrapping noticed on windows --- diff --git a/src/version.c b/src/version.c index c2b5ab416..6973b6cbd 100644 --- a/src/version.c +++ b/src/version.c @@ -170,10 +170,11 @@ doextversion() the file manually so we can include dynamic version info */ (void) getversionstring(buf); - /* if extra text (git info) is present, put it on separate line */ + /* if extra text (git info) is present, put it on separate line + but don't wrap on (x86) */ if (strlen(buf) >= COLNO) p = rindex(buf, '('); - if (p && p > buf && p[-1] == ' ') + if (p && p > buf && p[-1] == ' ' && p[1] != 'x') p[-1] = '\0'; else p = 0;