]> git.eshelyaron.com Git - emacs.git/commitdiff
Hi-lock lines up to right margin (Bug#15934)
authorMichael Heerdegen <michael_heerdegen@web.de>
Wed, 21 Aug 2019 13:51:13 +0000 (15:51 +0200)
committerMichael Heerdegen <michael_heerdegen@web.de>
Fri, 23 Aug 2019 11:26:36 +0000 (13:26 +0200)
* 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

index 65465d3b4c8c251cb509ac9afbbaa0fe7a1d4346..b6b0e2a736e446ac1b81bbd013bca918788da8f4 100644 (file)
@@ -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