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

    highlight-current-depth: use new ON-BAR capability for depth
---
 indent-bars.el | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/indent-bars.el b/indent-bars.el
index 2f3fa21cbc..747deda985 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -964,11 +964,7 @@ ROT are as in `indent-bars--stipple', and have similar 
default values."
 (defun indent-bars--highlight-current-depth ()
   "Refresh current indentation depth highlight.
 Works by remapping the appropriate indent-bars-N face."
-  (let* ((c (current-indentation))
-        (depth (indent-bars--depth c)))
-    (if (and (>= c indent-bars--offset)
-            (= (mod (- c indent-bars--offset) indent-bars-spacing) 0))
-       (cl-incf depth))  ; right on a bar: bump depth up
+  (let* ((depth (indent-bars--current-indentation-depth 'on-bar)))
     (when (and depth (not (= depth indent-bars--current-depth)))
       (if indent-bars--remap-face      ; out with the old
          (face-remap-remove-relative indent-bars--remap-face))

Reply via email to