From 05a41b262980383ad15eee6ae0020f69639217db Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 14 Nov 2024 11:38:10 +0100 Subject: 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. --- xA/xA.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xA') diff --git a/xA/xA.go b/xA/xA.go index 495dfd5..954eb68 100644 --- a/xA/xA.go +++ b/xA/xA.go @@ -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 } -- cgit v1.2.3-70-g09d2