]> granicus.if.org Git - nethack/commitdiff
TTY: Do not cut off statuslines at 80 characters
authorPasi Kallinen <paxed@alt.org>
Sun, 8 Mar 2015 08:40:26 +0000 (10:40 +0200)
committerPasi Kallinen <paxed@alt.org>
Sun, 8 Mar 2015 08:40:26 +0000 (10:40 +0200)
Show as much of the status line as possible, instead of chopping
it at COLNO - this prevents possible game-influencing status
effects (Ill, Burdened, etc) from being hidden.

win/tty/wintty.c

index 67b0243d4d2495124fe92bb742a6927dd222a435..19af943b9a18de7857234c064dd4429e28b8b2df 100644 (file)
@@ -1061,7 +1061,7 @@ tty_create_nhwindow(type)
 #endif
        newwin->offy = min((int)ttyDisplay->rows-2, ROWNO+1);
        newwin->rows = newwin->maxrow = 2;
-       newwin->cols = newwin->maxcol = min(ttyDisplay->cols, COLNO);
+       newwin->cols = newwin->maxcol = ttyDisplay->cols;
        break;
     case NHW_MAP:
        /* map window, ROWNO lines long, full width, below message window */