Simplify nth comparison when reusing transformed tokens
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled

This commit is contained in:
Junegunn Choi
2025-01-13 17:37:50 +09:00
parent ba0935c71f
commit 56fef7c8df
4 changed files with 14 additions and 19 deletions

View File

@@ -8,9 +8,9 @@ import (
type transformed struct {
// Because nth can be changed dynamically by change-nth action, we need to
// keep the nth value at the time of transformation.
nth []Range
tokens []Token
// keep the revision number at the time of transformation.
revision int
tokens []Token
}
// Item represents each input line. 56 bytes.