From 766f35ccc0e7288757857ef7eb33634b5fb9860e Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 22 Nov 2020 01:48:46 +0100 Subject: [PATCH] Fix minor line breaking bug. --- rogue_chat_curses.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 295c041..c29b405 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -63,7 +63,7 @@ mode_helps = { 'long': 'Waiting for a server response.' }, 'password': { - 'short': 'password input', + 'short': 'map edit password', 'long': 'This mode allows you to change the password that you send to authorize yourself for editing password-protected map tiles. Hit return to confirm and leave.' }, 'admin': { @@ -531,6 +531,8 @@ class TUI: lines += [chunk] chunk = '' x = 0 + if msg[i] == "\n": + x -= 1 if msg[i] != "\n": chunk += msg[i] x += 1 -- 2.30.2