fix: update window when moving across bufs

This commit is contained in:
əlemi 2024-10-02 23:23:53 +02:00
parent bdb991033a
commit 3e2ceb99de
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -71,7 +71,11 @@ local function register_cursor_callback(controller, name)
end end
once = false once = false
end end
local oldbuf = buffers.users[CODEMP.client.username]
buffers.users[CODEMP.client.username] = bufname buffers.users[CODEMP.client.username] = bufname
if oldbuf ~= bufname then
require('codemp.window').update()
end
end end
}) })
end end