Skip to content
Snippets Groups Projects
Commit e38ef663 authored by Sébastien Helleu's avatar Sébastien Helleu
Browse files

Fix lines displayed in wrong buffer on startup

The bug was introduced by commit 46e5dee0
(option relay.lines to limit the number of lines received on connection).
parent 8217c4e2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -359,12 +359,15 @@ class MainWindow(QTGUI.QMainWindow):
index = [i for i, b in enumerate(self.buffers)
if b.pointer() == ptrbuf]
if index:
lines.append((item['date'], item['prefix'],
item['message']))
lines.append(
(index[0],
(item['date'], item['prefix'],
item['message']))
)
if message.msgid == 'listlines':
lines.reverse()
for line in lines:
self.buffers[index[0]].widget.chat.display(*line)
self.buffers[line[0]].widget.chat.display(*line[1])
 
def _parse_nicklist(self, message):
"""Parse a WeeChat message with a buffer nicklist."""
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment