Use single define for max message history

... instead of having every windowport define their own variant.
Affects tty, curses, X11, and Windows GUI.
This commit is contained in:
Pasi Kallinen
2024-03-03 11:31:33 +02:00
parent 9a866688c5
commit 53778ee507
7 changed files with 12 additions and 11 deletions

View File

@@ -92,8 +92,8 @@ create_message_window(struct xwindow *wp, /* window pointer */
if (iflags.msg_history < (unsigned) appResources.message_lines)
iflags.msg_history = (unsigned) appResources.message_lines;
if (iflags.msg_history > MAX_HISTORY) /* a sanity check */
iflags.msg_history = MAX_HISTORY;
if (iflags.msg_history > MAX_MSG_HISTORY) /* a sanity check */
iflags.msg_history = MAX_MSG_HISTORY;
set_circle_buf(mesg_info, (int) iflags.msg_history);