diff --git a/lua/codemp/buffers.lua b/lua/codemp/buffers.lua index 05cacfb..fb47735 100644 --- a/lua/codemp/buffers.lua +++ b/lua/codemp/buffers.lua @@ -142,6 +142,9 @@ local function attach(name, opts) print(" ~~ applying change ~~ " .. event.change.start_idx .. ".." .. event.change.end_idx .. "::[" .. event.change.content .. "]") end utils.buffer.set_content(buffer, event.change.content, event.change.start_idx, event.change.end_idx) + controller:ack(event.version) + + -- error detection if event.hash ~= nil then if CODEMP.native.hash(utils.buffer.get_content(buffer)) ~= event.hash then if CODEMP.config.auto_sync then