commit 88663c1

Hubert Hirtz  ·  2021-10-31 08:03:49 +0000 UTC
parent 2dd34ad
Print the topic after the first batch of history

The topic is the first line we put in a buffer, so we have to place the
first batch of history *before* the topic, instead of after.
1 files changed,  +1, -1
M app.go
M app.go
+1, -1
1@@ -767,7 +767,7 @@ func (app *App) handleIRCEvent(netID string, ev interface{}) {
2 						linesAfter = append(linesAfter, line)
3 					}
4 				} else {
5-					linesAfter = append(linesAfter, line)
6+					linesBefore = append(linesBefore, line)
7 				}
8 			}
9 		}