[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/indent-bars 269774df6d 201/431: Correct bar depth calcu
From: |
ELPA Syncer |
Subject: |
[elpa] externals/indent-bars 269774df6d 201/431: Correct bar depth calculation corner case |
Date: |
Mon, 16 Sep 2024 12:59:29 -0400 (EDT) |
branch: externals/indent-bars
commit 269774df6d5030832d04c5cf067d7a3a2568a46f
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
Correct bar depth calculation corner case
---
indent-bars.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/indent-bars.el b/indent-bars.el
index 20f0d2001b..68d48df3f5 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -630,9 +630,7 @@ font-lock properties."
"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))
(defun indent-bars--blank-string (off nbars bar-from &optional width)
"Return a blank string with bars displayed.
- [elpa] externals/indent-bars a86f8eca12 410/431: be more defensive with face-foreground/background, (continued)
- [elpa] externals/indent-bars a86f8eca12 410/431: be more defensive with face-foreground/background, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 6efd53115d 419/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars a31c2f446a 396/431: indent-bars-ts: rename to finalize-jit-lock, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 0456549b9a 427/431: Add sh-mode, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars cf411a485c 181/431: Use timer to rate-limit current depth highlight, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 8f9a4d7cc9 146/431: Minore README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 2cc2f00e8c 172/431: README: mention --with-cairo, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 4dd4e0e8d7 171/431: Bump version, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 56c4e96637 200/431: Check unfontify-region function before setting region-function, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 13a8d8d370 194/431: indent-bars: reorganize, style struct and alternate styling, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 269774df6d 201/431: Correct bar depth calculation corner case,
ELPA Syncer <=
- [elpa] externals/indent-bars 209817a622 414/431: make teardown-functions buffer-local, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars b63c46e6a2 413/431: Make update-depth-function and ppss buffer-local, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 8e9d028811 398/431: Make default bars less obtrusive, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 5ca30b97a7 422/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 4a2e8e1792 426/431: First ELPA version, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars c4c680eb8e 431/431: Update README.md, ELPA Syncer, 2024/09/16