definitely fix this empty line issue svn diff
This commit is contained in:
parent
48e83924d6
commit
9a88c02142
1 changed files with 1 additions and 6 deletions
|
@ -188,9 +188,6 @@ class TextWin(Win):
|
||||||
limit = txt[:self.width-offset].find('\n')
|
limit = txt[:self.width-offset].find('\n')
|
||||||
else:
|
else:
|
||||||
limit = self.width-offset-1
|
limit = self.width-offset-1
|
||||||
# if limit == 0:
|
|
||||||
# txt = txt[1:]
|
|
||||||
# continue
|
|
||||||
color = message.user.color if message.user else None
|
color = message.user.color if message.user else None
|
||||||
if not first:
|
if not first:
|
||||||
nick = None
|
nick = None
|
||||||
|
@ -199,9 +196,7 @@ class TextWin(Win):
|
||||||
txt[:limit], message.color,
|
txt[:limit], message.color,
|
||||||
offset)
|
offset)
|
||||||
lines.append(l)
|
lines.append(l)
|
||||||
if limit == 0:
|
txt = txt[limit+1:]
|
||||||
limit = 1
|
|
||||||
txt = txt[limit:]
|
|
||||||
first = False
|
first = False
|
||||||
return lines[-len(messages):]# return only the needed number of lines
|
return lines[-len(messages):]# return only the needed number of lines
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue