From ac0fe25b2ed41869fb6cd586f90449389b42d4aa Mon Sep 17 00:00:00 2001 From: Paul Nelson Date: Fri, 27 Jun 2025 07:15:24 +0200 Subject: [PATCH] fix: Queue pending edits before processing complicated changes * overleaf.el (overleaf--after-change-function): Add call to 'overleaf-queue-pending-edit' in the "complicate change" branch. Fixes #24. --- overleaf.el | 1 + 1 file changed, 1 insertion(+) diff --git a/overleaf.el b/overleaf.el index e0ce54d..7993716 100644 --- a/overleaf.el +++ b/overleaf.el @@ -1052,6 +1052,7 @@ overleaf." (setq overleaf--last-change-end end)) (setq-local overleaf--last-change-begin overleaf--before-change-begin)) (t + (overleaf-queue-pending-edit) (let* ((old overleaf--before-change) (final (let* ((kept-length (- (length old) length)) (new-length (- end begin))