mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Forgot to include metadata key in resized cache
This commit is contained in:
@@ -135,6 +135,7 @@ func (self *GraphicsHandler) cache_resized_image(cdir, cache_key string, img *im
|
|||||||
return nil, nil, fmt.Errorf("failed to write resized frame metadata to cache: %w", err)
|
return nil, nil, fmt.Errorf("failed to write resized frame metadata to cache: %w", err)
|
||||||
}
|
}
|
||||||
cached_data = make(map[string]string, len(frames)+1)
|
cached_data = make(map[string]string, len(frames)+1)
|
||||||
|
cached_data[IMAGE_METADATA_KEY] = path
|
||||||
for i, f := range frames {
|
for i, f := range frames {
|
||||||
path := filepath.Join(cdir, fmt.Sprintf("rsz-%s-%d", cache_key, i))
|
path := filepath.Join(cdir, fmt.Sprintf("rsz-%s-%d", cache_key, i))
|
||||||
key := IMAGE_DATA_PREFIX + strconv.Itoa(i)
|
key := IMAGE_DATA_PREFIX + strconv.Itoa(i)
|
||||||
|
|||||||
Reference in New Issue
Block a user