[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/indent-bars 2b6d25a083 316/431: update current indentat
From: |
ELPA Syncer |
Subject: |
[elpa] externals/indent-bars 2b6d25a083 316/431: update current indentation only if depth decreases |
Date: |
Mon, 16 Sep 2024 12:59:45 -0400 (EDT) |
branch: externals/indent-bars
commit 2b6d25a083d1a6111c217d178619b5d039a6a2c8
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
update current indentation only if depth decreases
---
indent-bars.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/indent-bars.el b/indent-bars.el
index 266c0946e5..c85de3757e 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -929,8 +929,9 @@ and can return an updated depth."
(sl (and indent-bars-no-descend-lists (nth 1 ppss))))
(when (setq ppss-ind (if (and ss sl) (max ss sl) (or ss sl)))
(goto-char ppss-ind)
- (setq c (current-indentation)
- d (min d (1+ (indent-bars--depth c)))))
+ (let* ((cnew (current-indentation))
+ (dnew (1+ (indent-bars--depth cnew))))
+ (when (< dnew d) (setq d dnew c cnew))))
(goto-char p)))
(when (and indent-bars--update-depth-function (not ppss-ind))
(setq d (funcall indent-bars--update-depth-function d)))
- [elpa] externals/indent-bars e12b91fe3f 295/431: doc: custom tweak, (continued)
- [elpa] externals/indent-bars e12b91fe3f 295/431: doc: custom tweak, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 8855d462da 297/431: Add unspecified choice to simple custom vars too, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars dd4f7bd3ee 296/431: update-scope: consider no node or scope match as full-file, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 93a268799d 307/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars a78445ef7d 299/431: update copyrights, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars d962712541 302/431: Update-name and relocate delay vars, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars def1e3e395 303/431: README: document v0.5 release, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 6a68c5e7ff 301/431: Bump version, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars c4d05c62c0 306/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars f34bd21940 310/431: Tweak default bar style: slimmer bar, longer "dash:, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 2b6d25a083 316/431: update current indentation only if depth decreases,
ELPA Syncer <=
- [elpa] externals/indent-bars f6e96b01d2 312/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 449b49f6a1 331/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars dd197c931a 334/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars c990d7dee3 339/431: ts-union-all: simplify vars, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 42cb7aed86 340/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars f91f125dad 319/431: Update README.md with new GIF animation, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 90de8c3159 344/431: indent-bars: minor cleanup, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 3d55fd643d 330/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 88a68c8364 318/431: README.md: add new video, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars bcb3b0fdb1 329/431: Update README.md, ELPA Syncer, 2024/09/16