Fixed highlight issue on last line of quote

pull/37/head
マリウス 2 years ago
parent 7739400b63
commit a9643b47b3
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F

@ -414,7 +414,7 @@ func(mainscreen *Mainscreen) renderPreview(article *models.Article) {
body = m.ReplaceAllString(body, "")
// End GPG/PGP stuff
m = regexp.MustCompile(`(?m)^> (.*)\n`)
m = regexp.MustCompile(`(?m)^> (.*)(\n){0,1}`)
body = m.ReplaceAllString(body, "[gray]> $1[-]\n")
mainscreen.Preview.SetText(fmt.Sprintf(

Loading…
Cancel
Save