The calulated limit ensures that at least one message will be displayed. Using a hard-coded constant is ugly, but such are scattered throughout the script. Untangling those constants has been left for future patch.pull/1439/head
parent
efc1c1d71e
commit
49b1a0ca5c
|
@ -840,6 +840,9 @@ def handle_cmd(cmd):
|
||||||
lines = int(_get_cmd_param(cmd))
|
lines = int(_get_cmd_param(cmd))
|
||||||
if lines < 1:
|
if lines < 1:
|
||||||
lines = 1
|
lines = 1
|
||||||
|
max_chat_area = curses.LINES - 7
|
||||||
|
if lines > max_chat_area:
|
||||||
|
lines = max_chat_area
|
||||||
cy_chat_area = lines
|
cy_chat_area = lines
|
||||||
elif "skills" in cmd:
|
elif "skills" in cmd:
|
||||||
# List loaded skill
|
# List loaded skill
|
||||||
|
|
Loading…
Reference in New Issue