branch: elpa/symbol-overlay
commit 765e1d3b073ab0f86979cb61393e523c37633240
Author: wolray <[email protected]>
Commit: wolray <[email protected]>
improvements on refresh
---
symbol-overlay.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/symbol-overlay.el b/symbol-overlay.el
index 9aa22d2ede..e7a415b315 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -522,7 +522,8 @@ BEG, END and LEN are the beginning, end and length of
changed text."
(and (looking-at-p re)
(setq end (re-search-forward "\\_>")))
(goto-char beg)
- (and (looking-at-p (concat "\\(" re "\\|\\_>\\)"))
+ (and (not (looking-at-p "\\_<"))
+ (looking-at-p (concat "\\(" re "\\|\\_>\\)"))
(setq beg (re-search-backward "\\_<")))
(mapc #'(lambda (overlay)
(and (overlay-get overlay 'symbol)