tty bug with displaying long 'autodescribe' text
Messages on tty which bypass message history weren't handling long lines properly. If the text wrapped to line 2, that continuation portion was left on the screen after whatever operation that put it here was finished. (To reproduce: assign a long name to a monster with a long type name so that the combined length exceeds the display width, then move the cursor over it with ';' or '/' while autodescribe is On.)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 topl.c $NHDT-Date: 1549333449 2019/02/05 02:24:09 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.44 $ */
|
||||
/* NetHack 3.6 topl.c $NHDT-Date: 1560387439 2019/06/13 00:57:19 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.45 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2009. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -155,6 +155,9 @@ const char *str;
|
||||
home();
|
||||
cl_end();
|
||||
addtopl(str);
|
||||
|
||||
if (ttyDisplay->cury && ttyDisplay->toplin != 3)
|
||||
more();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user