xA/xM/xW: refresh renamed buffers correctly

Rendering takes the current buffer into account,
so change its value before using it, not afterwards.

The order happened to not matter on at least Windows,
because we just queue a message.
This commit is contained in:
2024-11-14 11:38:10 +01:00
parent a62ed5bbac
commit 05a41b2629
3 changed files with 4 additions and 4 deletions

View File

@@ -921,11 +921,11 @@ func relayProcessMessage(m *RelayEventMessage) {
b.bufferName = data.New
refreshBufferList()
if data.BufferName == bufferCurrent {
bufferCurrent = data.New
refreshStatus()
}
refreshBufferList()
if data.BufferName == bufferLast {
bufferLast = data.New
}