From: nethack.allison Date: Fri, 21 Feb 2003 01:55:26 +0000 (+0000) Subject: more win32 more (from ) X-Git-Tag: MOVE2GIT~2139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d0a10f3fd95ccd38c8fa01ab9e7f6b8b28713f4;p=nethack more win32 more (from ) and both agreed that this was: - useful - unlikely to break anything. --- diff --git a/win/win32/mhmsgwnd.c b/win/win32/mhmsgwnd.c index ad9c0250e..08149e5f1 100644 --- a/win/win32/mhmsgwnd.c +++ b/win/win32/mhmsgwnd.c @@ -491,10 +491,13 @@ void onPaint(HWND hWnd) oldFont = SelectObject(hdc, mswin_get_font(NHW_MESSAGE, data->window_text[lineidx].attr, hdc, FALSE)); /* find out if we can concatenate the scheduled message without wrapping, - but only if no clear_nhwindow was done just before putstr'ing this one. + but only if no clear_nhwindow was done just before putstr'ing this one, + and only if not in a more prompt already (to prevent concatenating to + a line containing --More-- when resizing while --More-- is displayed.) */ if (i == MSG_LINES-1 - && strlen(data->new_line.text) > 0) { + && strlen(data->new_line.text) > 0 + && !data->in_more) { /* concatenate to the previous line if that is not empty, and if it has the same attribute, and no clear was done. */