]> granicus.if.org Git - nethack/commitdiff
eliminate an odd line wrapping noticed on windows
authornhmall <nhmall@nethack.org>
Thu, 13 Feb 2020 05:59:04 +0000 (00:59 -0500)
committernhmall <nhmall@nethack.org>
Thu, 13 Feb 2020 05:59:04 +0000 (00:59 -0500)
src/version.c

index c2b5ab4165ecbf3f099f6722b4d193347b74bc71..6973b6cbde3d50b29f6c100b4ffaf8cbe82f61f0 100644 (file)
@@ -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;