emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/urgrep ce07e97d37 088/115: Allow ANSI escapes for match


From: ELPA Syncer
Subject: [elpa] externals/urgrep ce07e97d37 088/115: Allow ANSI escapes for matches to end just after a newline
Date: Wed, 10 May 2023 03:00:47 -0400 (EDT)

branch: externals/urgrep
commit ce07e97d372be5c135ae8a5ffc0171a0734edfdf
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>

    Allow ANSI escapes for matches to end just after a newline
---
 urgrep.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/urgrep.el b/urgrep.el
index 652e224d27..bb721e6093 100644
--- a/urgrep.el
+++ b/urgrep.el
@@ -760,7 +760,7 @@ This function is called from `compilation-filter-hook'."
                         "\033\\[0?1;31m"      ; Find the escapes together...
                         "\\|"
                         "\033\\[1m\033\\[31m" ; ... or apart.
-                        "\\)\\(.*?\\)\033\\[0?m")
+                        "\\)\\(.*?\n?\\)\033\\[0?m")
                 end 1)
           (replace-match
            (propertize (match-string 1) 'face nil 'font-lock-face 
'urgrep-match)



reply via email to

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