~sircmpwn/aerc

msgviewer: do not anchor ansi escape to start of line v1 PROPOSED

Reto Brunner: 1
 msgviewer: do not anchor ansi escape to start of line

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/9447/mbox | git am -3
Learn more about email & git

[PATCH v1] msgviewer: do not anchor ansi escape to start of line Export this patch

---

Split up the larger patchset into individual chunks as requested by Drew.

Not sure why this regex was anchored at the start of the line?


 widgets/msgviewer.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 25bebfa..426d914 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -23,7 +23,7 @@ import (
	"git.sr.ht/~sircmpwn/aerc/models"
)

var ansi = regexp.MustCompile("^\x1B\\[[0-?]*[ -/]*[@-~]")
var ansi = regexp.MustCompile("\x1B\\[[0-?]*[ -/]*[@-~]")

var _ ProvidesMessages = (*MessageViewer)(nil)

-- 
2.24.1
Thanks!

To git.sr.ht:~sircmpwn/aerc
   b2dc624..da6fb1a  master -> master
View this thread in the archives