branch: externals/indent-bars
commit 62c76468eb11220fae874d0f6f9215f3cd8c9d9e
Merge: 56c4e96637 269774df6d
Author: JD Smith <[email protected]>
Commit: JD Smith <[email protected]>

    Merge branch 'main' into treesit-scope
---
 README.md      | 2 +-
 indent-bars.el | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 6e3b1afce9..eb5e186243 100644
--- a/README.md
+++ b/README.md
@@ -193,7 +193,7 @@ If you are experiencing issues with stipple bar display 
(missing, garbled, etc.)
                               'face `(:background "red" :foreground "blue" 
:stipple ,stipple))))
    ```
 
-This should then look something like:
+This should then look something like (note the blue vertical bars):
 
 <img width="668" alt="image" 
src="https://github.com/jdtsmith/indent-bars/assets/93749/dd0f65f5-3cdc-4865-a66d-41365cecadd0";>
 
diff --git a/indent-bars.el b/indent-bars.el
index 16013b97a2..e147dfdfb6 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -774,9 +774,7 @@ inheritance of the plist is handled.  If style is the symbol
   "Number of possible bars for initial blank string of length LEN.
 Note that the first bar is expected at `indent-bars-starting-column'."
   (setq len (- len indent-bars--offset))
-  (cond ((>= len indent-bars-spacing) (/ (1+ len) indent-bars-spacing))
-       ((> len 0) 1)
-       (t 0)))
+  (if (>= len indent-bars-spacing) (1+ (/ (1+ len) indent-bars-spacing)) 0))
 
 (defvar indent-bars--update-depth-function nil)
 (defun indent-bars--current-indentation-depth (&optional on-bar)

Reply via email to