diff options
-rw-r--r-- | src/core.py | 1 | ||||
-rw-r--r-- | src/windows.py | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core.py b/src/core.py index bf667598..129b6e92 100644 --- a/src/core.py +++ b/src/core.py @@ -113,7 +113,6 @@ class Core(object): 'status': (self.command_status, _('Usage: /status <availability> [status message]\nStatus: Sets your availability and (optionaly) your status message. The <availability> argument is one of \"available, chat, away, afk, dnd, busy, xa\" and the optional [status] argument will be your status message.'), self.completion_status), 'away': (self.command_away, _("Usage: /away [message]\nAway: Sets your availability to away and (optionaly) your status message. This is equivalent to '/status away [message]'"), None), 'busy': (self.command_busy, _("Usage: /busy [message]\nBusy: Sets your availability to busy and (optionaly) your status message. This is equivalent to '/status busy [message]'"), None), - 'avail': (self.command_avail, _("Usage: /avail [message]\nAvail: Sets your availability to available and (optionaly) your status message. This is equivalent to '/status avail [message]'"), None), 'available': (self.command_avail, _("Usage: /available [message]\nAvailable: Sets your availability to available and (optionaly) your status message. This is equivalent to '/status available [message]'"), None), 'bookmark': (self.command_bookmark, _("Usage: /bookmark [roomname][/nick]\nBookmark: Bookmark the specified room (you will then auto-join it on each poezio start). This commands uses the same syntaxe as /join. Type /help join for syntaxe examples. Note that when typing \"/bookmark\" on its own, the room will be bookmarked with the nickname you\'re currently using in this room (instead of default_nick)"), None), 'set': (self.command_set, _("Usage: /set <option> [value]\nSet: Sets the value to the option in your configuration file. You can, for example, change your default nickname by doing `/set default_nick toto` or your resource with `/set resource blabla`. You can also set an empty value (nothing) by providing no [value] after <option>."), None), diff --git a/src/windows.py b/src/windows.py index 1b414b37..2d62a35b 100644 --- a/src/windows.py +++ b/src/windows.py @@ -532,7 +532,7 @@ class TextWin(Win): first = True nb = 0 while txt != '': - (txt, cutted_txt) = cut_text(txt, self.width-offset) + (txt, cutted_txt) = cut_text(txt, self.width-offset-1) l = {'colorized': message.get('colorized'), 'text_offset':offset, 'text_color':message.get('color'), |