mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-31 14:22:33 +00:00
Better struct name
This commit is contained in:
parent
508a61bd1c
commit
9eedcc1d2a
2 changed files with 10 additions and 9 deletions
|
|
@ -257,8 +257,8 @@ func image_lines(left_path, right_path string, columns, margin_size int, ans []*
|
|||
}
|
||||
text := fmt.Sprintf("Size: %s", human_readable(sz))
|
||||
res := image_collection.ResolutionOf(path)
|
||||
if res.X > -1 {
|
||||
text = fmt.Sprintf("Dimensions: %dx%d %s", res.X, res.Y, text)
|
||||
if res.Width > -1 {
|
||||
text = fmt.Sprintf("Dimensions: %dx%d %s", res.Width, res.Height, text)
|
||||
}
|
||||
text = place_in(text, available_cols)
|
||||
return formatter(strings.Repeat(` `, margin_size) + text), err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue