[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/indent-bars 71b787c7d0 294/431: display: goto BEG prior
From: |
ELPA Syncer |
Subject: |
[elpa] externals/indent-bars 71b787c7d0 294/431: display: goto BEG prior to checking indentation depth |
Date: |
Mon, 16 Sep 2024 12:59:42 -0400 (EDT) |
branch: externals/indent-bars
commit 71b787c7d07c18eec5a60a334c3310fb16659c04
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
display: goto BEG prior to checking indentation depth
This is necessary because font-lock puts point after the first
non-blank character on the line, potentially changing the PPSS
output (e.g. inside a string).
---
indent-bars.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/indent-bars.el b/indent-bars.el
index 8bb0da54aa..f04ef5fc0a 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -1072,7 +1072,9 @@ font-lock properties."
BEG and END should be on the same line. STYLE, SWITCH-AFTER and
STYLE2 are as in `indent-bars--draw-line'. If STYLE is not
passed, uses `indent-bars-style' for drawing."
- (let ((n (indent-bars--current-indentation-depth)))
+ (let ((n (save-excursion
+ (goto-char beg)
+ (indent-bars--current-indentation-depth))))
(when (> n 0) (indent-bars--draw-line style n beg end nil
switch-after style2))))
- [elpa] externals/indent-bars f5f0392ab6 254/431: window-change: remap even if whr val unchanged, use remap-cleanup, (continued)
- [elpa] externals/indent-bars f5f0392ab6 254/431: window-change: remap even if whr val unchanged, use remap-cleanup, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars ceb2eb00e9 266/431: ppss-based no-descend-string/list, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 62d4a834b7 282/431: Restore use of base stipple-face-spec, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars d7af7b3d42 283/431: Restore unspecified for "parent decides" config, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 247b35f55d 286/431: on-bar tweaks and doc improvements, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars f80c712b37 288/431: update-current-depth-highlight: reindent, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 9d374e0650 291/431: Fix timer teardown and run-hooks (which takes a hook name), ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 8d8b0b964b 292/431: Do not test bol but point to skip scope update, simplify markers, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 4fa1058326 293/431: Never recreate the same style TAG, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 86113c74ee 298/431: docs: minor tweaks, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 71b787c7d0 294/431: display: goto BEG prior to checking indentation depth,
ELPA Syncer <=
- [elpa] externals/indent-bars b433c5ca4d 308/431: TS: add developer note, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 4d1e7db294 309/431: TS: remove debug message, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars e20ba1caea 304/431: Improve README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 8cccb685b1 305/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 7a1413cb15 314/431: Ensure buffer-local idle timers run in the original buffer, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars adbf859e2d 323/431: Update README.md — blank spacer, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 21f6242b24 321/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 751db47d31 341/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars bb43583789 336/431: invalidate using all window ranges showing current buffer, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 3b738a1d10 333/431: README: ts out of scope style config improvements, ELPA Syncer, 2024/09/16