emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d534687: Hi-lock lines up to right margin (Bug#1593


From: Michael Heerdegen
Subject: [Emacs-diffs] master d534687: Hi-lock lines up to right margin (Bug#15934)
Date: Fri, 23 Aug 2019 07:34:52 -0400 (EDT)

branch: master
commit d534687c43a1517e291b8de31e3ce23c2e6e4603
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>

    Hi-lock lines up to right margin (Bug#15934)
    
    * lisp/hi-lock.el (hi-lock-line-face-buffer): Change used regexp so
    that a line terminating newline character is included in the match.
---
 lisp/hi-lock.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el
index 65465d3..b6b0e2a 100644
--- a/lisp/hi-lock.el
+++ b/lisp/hi-lock.el
@@ -447,7 +447,7 @@ highlighting will not update as you type."
   (hi-lock-set-pattern
    ;; The \\(?:...\\) grouping construct ensures that a leading ^, +, * or ?
    ;; or a trailing $ in REGEXP will be interpreted correctly.
-   (concat "^.*\\(?:" regexp "\\).*$") face))
+   (concat "^.*\\(?:" regexp "\\).*\\(?:$\\)\n?") face))
 
 
 ;;;###autoload



reply via email to

[Prev in Thread] Current Thread [Next in Thread]