From 7f0dd45ac0130214b0091ff62896455587fd70ea Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 26 Oct 2024 18:28:40 +0200 Subject: [PATCH] fix: ack when applying changes --- lua/codemp/buffers.lua | 3 +++ 1 file changed, 3 insertions(+) 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