From: Christian Heller Date: Sun, 22 Nov 2020 00:48:46 +0000 (+0100) Subject: Fix minor line breaking bug. X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=766f35ccc0e7288757857ef7eb33634b5fb9860e;p=plomrogue2 Fix minor line breaking bug. --- 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