m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Simplify nth comparison when reusing transformed tokens

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.