[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eglot-inactive-regions 4fc6480bed 18/66: Move forward if f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eglot-inactive-regions 4fc6480bed 18/66: Move forward if forward-same-syntax does not |
Date: |
Fri, 6 Dec 2024 06:59:52 -0500 (EST) |
branch: elpa/eglot-inactive-regions
commit 4fc6480bed063b431477ede9d660a36c7fc3af98
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <Filippo.Argiolas@telit.com>
Move forward if forward-same-syntax does not
Fixes (maybe) a bug of the while loop getting stuck when
forward-same-syntax didn't move the pointer ahead. Still not sure why it
worked with treesitter modes and failed with c and especially cpp modes.
Might have to look into it a bit deeper.
---
clangd-inactive-regions.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/clangd-inactive-regions.el b/clangd-inactive-regions.el
index ede62702ae..3dd2d3dfe8 100644
--- a/clangd-inactive-regions.el
+++ b/clangd-inactive-regions.el
@@ -190,6 +190,8 @@ foreground colors, if the face doesn't exist yet create it."
(goto-char from)
(while (<= (point) to)
(forward-same-syntax)
+ (when (eq beg (point))
+ (forward-char))
;; no need to dim whitespace
(unless (string-match-p "[[:blank:]\n]" (string (char-before)))
(let* ((cur-face (clangd-inactive-regions--get-face (1-
(point))))
- [nongnu] branch elpa/eglot-inactive-regions created (now 2c83a3230d), ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions f47d728c65 11/66: Stage basic README, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 65fbd7a7a1 08/66: Support for different shading methods to render inactive regions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions ea8da46342 01/66: Initial commit, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 9dba1b222d 14/66: Check for valid ranges when setting parameters, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4f5ab3203c 17/66: No need to copy-tree ranges, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 5528f4d3e1 03/66: fix gpl preamble, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4fc6480bed 18/66: Move forward if forward-same-syntax does not,
ELPA Syncer <=
- [nongnu] elpa/eglot-inactive-regions 2e52c1a10a 19/66: Use my own forward function, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3876101626 31/66: Update README., ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions b0ade8c12e 21/66: Handle face list properties, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3d3280c415 48/66: rename to eglot-inactive-regions.el, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 475864a1a3 65/66: exclude screenshots from the tarball, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 17c9db32d3 02/66: initial commit, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions e15124a898 07/66: Rewrite the darkening logic using fontify-region, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions e7be73b354 15/66: Invert shading factor, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions b81249c566 23/66: Update README with caveats section, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4b01aba42f 29/66: Fix package-lint warnings, ELPA Syncer, 2024/12/06