Release 2.2.0 #140

Merged
sloum merged 20 commits from develop into master 2020-03-23 05:29:18 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit f88b2c41b0 - Show all commits

View File

@ -132,7 +132,7 @@ func (p *Page) HighlightFoundText() {
if bombadillo.Options["theme"] == "inverse" {
format = "\033[27m%s\033[7m"
}
ln = strings.ReplaceAll(ln, p.SearchTerm, fmt.Sprintf(format, p.SearchTerm))
ln = strings.Replace(ln, p.SearchTerm, fmt.Sprintf(format, p.SearchTerm), -1)
p.WrappedContent[i] = ln
}
}
@ -153,7 +153,7 @@ func (p *Page) FindText() {
if found < 0 {
continue
}
ln = strings.ReplaceAll(ln, s, fmt.Sprintf(format, s))
ln = strings.Replace(ln, s, fmt.Sprintf(format, s), -1)
p.WrappedContent[i] = ln
p.FoundLinkLines = append(p.FoundLinkLines, i)
}