diff options
author | Michael Heerdegen <michael_heerdegen@web.de> | 2019-08-21 15:51:13 +0200 |
---|---|---|
committer | Michael Heerdegen <michael_heerdegen@web.de> | 2019-08-23 13:26:36 +0200 |
commit | d534687c43a1517e291b8de31e3ce23c2e6e4603 (patch) | |
tree | 44a0f057caae5ed3b8855aaf9c7c368f23e6792c /lisp/hi-lock.el | |
parent | b4065de33cf397b80e15c22740d34b4a03cfdc17 (diff) | |
download | emacs-d534687c43a1517e291b8de31e3ce23c2e6e4603.tar.gz emacs-d534687c43a1517e291b8de31e3ce23c2e6e4603.tar.bz2 emacs-d534687c43a1517e291b8de31e3ce23c2e6e4603.zip |
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.
Diffstat (limited to 'lisp/hi-lock.el')
-rw-r--r-- | lisp/hi-lock.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 65465d3b4c8..b6b0e2a736e 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 |