Merge pull request #1786 from mitchellh/kittyimg

renderer: kitty image with y offset should stretch image
This commit is contained in:
Mitchell Hashimoto
2024-05-22 15:44:53 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -1660,7 +1660,7 @@ fn prepKittyGraphics(
const source_height = if (p.source_height > 0)
@min(image.height, p.source_height)
else
image.height -| offset_y;
image.height -| source_y;
// Calculate the width/height of our image.
const dest_width = if (p.columns > 0) p.columns * self.grid_metrics.cell_width else source_width;

View File

@ -850,7 +850,7 @@ fn prepKittyGraphics(
const source_height = if (p.source_height > 0)
@min(image.height, p.source_height)
else
image.height -| offset_y;
image.height -| source_y;
// Calculate the width/height of our image.
const dest_width = if (p.columns > 0) p.columns * self.grid_metrics.cell_width else source_width;