From 938c15ec635c0147eda2510776fd63057165e69e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 16 Jan 2025 01:52:42 +0900 Subject: [PATCH] Skip merging nth offsets when unnecessary --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index a49fb5e8..1f1e2ba0 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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