diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-13 12:45:01 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-13 12:45:01 +0900 |
| commit | ba0935c71f5507958056201ddad2fc48674a586d (patch) | |
| tree | 1fd1e98765cb4ef61dfb5d83de2876bba79c9377 /src/item.go | |
| parent | d83eb2800a09d86e17c0339d86bd1f22f68164a8 (diff) | |
| download | fzf-ba0935c71f5507958056201ddad2fc48674a586d.tar.gz | |
Fix change-nth
* Proper clean-up of caches
* Force rerender list after the action
Diffstat (limited to 'src/item.go')
| -rw-r--r-- | src/item.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/item.go b/src/item.go index c07d7fff..6b91d069 100644 --- a/src/item.go +++ b/src/item.go @@ -6,10 +6,17 @@ import ( "github.com/junegunn/fzf/src/util" ) +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 +} + // Item represents each input line. 56 bytes. type Item struct { text util.Chars // 32 = 24 + 1 + 1 + 2 + 4 - transformed *[]Token // 8 + transformed *transformed // 8 origText *[]byte // 8 colors *[]ansiOffset // 8 } |
