From 56fef7c8df2713261fbdbd396aa81ed23d9a945a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 13 Jan 2025 17:37:50 +0900 Subject: Simplify nth comparison when reusing transformed tokens --- src/item.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/item.go') diff --git a/src/item.go b/src/item.go index 6b91d069..1943486f 100644 --- a/src/item.go +++ b/src/item.go @@ -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. -- cgit v1.2.3