branch: externals/jit-spell
commit dc58b579d4d074bb7b1f5ff2f4f8a5150cc31b8d
Author: Augusto Stoffel <arstof...@gmail.com>
Commit: Augusto Stoffel <arstof...@gmail.com>

    Fix wrong nesting
---
 jit-spell.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/jit-spell.el b/jit-spell.el
index fbbd1a499a..8e4e2288e4 100644
--- a/jit-spell.el
+++ b/jit-spell.el
@@ -218,8 +218,8 @@ to END coming first."
   (pcase-dolist (`(,i . ,j) gaps)
     (dolist (ov (overlays-in j end))
       (when (eq 'jit-spell (overlay-get ov 'category))
-        (delete-overlay ov))
-      (setq end i)))
+        (delete-overlay ov)))
+    (setq end i))
   (dolist (ov (overlays-in start end))
     (when (eq 'jit-spell (overlay-get ov 'category))
       (delete-overlay ov))))

Reply via email to