we don't need +=1 for "new arg space" because we're pushing on an existing arg

This commit is contained in:
jesopo 2020-03-05 11:15:37 +00:00
parent 1c09f7c854
commit c0947b066d

View file

@ -142,7 +142,6 @@ class SendableLine(ParsedLine):
tags, line = self._format() tags, line = self._format()
n = len(line.encode("utf8")) # get length of current line n = len(line.encode("utf8")) # get length of current line
n += self._margin # margin used for :hostmask n += self._margin # margin used for :hostmask
n += 1 # +1 for space on new arg
if " " in arg and not " " in last_arg: if " " in arg and not " " in last_arg:
n += 1 # +1 for colon on new arg n += 1 # +1 for colon on new arg
n += extra_margin # used for things like (more ...) n += extra_margin # used for things like (more ...)