Skip to content

Commit

Permalink
Skip merging nth offsets when unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Jan 16, 2025
1 parent 3e7f032 commit 938c15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -2722,7 +2722,7 @@ func (t *Terminal) printHighlighted(result Result, colBase tui.ColorPair, colMat
sort.Sort(ByOrder(charOffsets))
}
var nthOffsets []Offset
if len(t.nth) > 0 && postTask != nil {
if len(t.nthCurrent) > 0 && t.nthAttr > 0 && postTask != nil {
var tokens []Token
if item.transformed != nil {
tokens = item.transformed.tokens
Expand Down

0 comments on commit 938c15e

Please sign in to comment.