Simplify nth comparison when reusing transformed tokens

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

No files matched your search

+3 -3
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.