diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-11-14 11:38:10 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-11-14 11:41:09 +0100 |
commit | 05a41b262980383ad15eee6ae0020f69639217db (patch) | |
tree | 9631ee58feac54479facc08068c92ab04cfd524d /xM/main.swift | |
parent | a62ed5bbac9a9056d01dd5ce4eb78b8b79999414 (diff) | |
download | xK-05a41b262980383ad15eee6ae0020f69639217db.tar.gz xK-05a41b262980383ad15eee6ae0020f69639217db.tar.xz xK-05a41b262980383ad15eee6ae0020f69639217db.zip |
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.
Diffstat (limited to 'xM/main.swift')
-rw-r--r-- | xM/main.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xM/main.swift b/xM/main.swift index e6f9648..48f26c4 100644 --- a/xM/main.swift +++ b/xM/main.swift @@ -842,11 +842,11 @@ relayRPC.onEvent = { message in b.bufferName = data.new - refreshBufferList() if b.bufferName == relayBufferCurrent { relayBufferCurrent = data.new refreshStatus() } + refreshBufferList() if b.bufferName == relayBufferLast { relayBufferLast = data.new } |