branch: externals/indent-bars
commit 3d5bfe678dc1860398f6dfb426f0244bf8f68c12
Author: JD Smith <[email protected]>
Commit: JD Smith <[email protected]>

    Set markers only after computing flush ranges
---
 indent-bars-ts.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/indent-bars-ts.el b/indent-bars-ts.el
index 02d87c55c3..f179ab88b8 100644
--- a/indent-bars-ts.el
+++ b/indent-bars-ts.el
@@ -280,12 +280,12 @@ both)."
                  (goto-char tsc-start)
                  (forward-line 0)
                  (indent-bars--current-indentation-depth)))
-         (set-marker (ibts/start ibtcs) tsc-start)
-         (set-marker (ibts/end ibtcs) tsc-end)
          (cl-loop for (beg . end) in   ; refontify where needed
                   (indent-bars-ts--symdiff
                    (cons old-start old-end) (cons tsc-start tsc-end))
-                  do (font-lock-flush beg end)))))))
+                  do (font-lock-flush beg end))
+         (set-marker (ibts/start ibtcs) tsc-start)
+         (set-marker (ibts/end ibtcs) tsc-end))))))
 
 (defvar indent-bars-ts--scope-timer nil)
 (defun indent-bars-ts--update-scope ()

Reply via email to