diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-01 08:26:42 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 08:53:11 -0300 |
| commit | b7eb31674e01c992cafc91518e161258b921bd33 (patch) | |
| tree | a55a358f2753b470ffdad261c8dd375aea6a069b /src/image.zig | |
| parent | f3070c04d3eaa0e0d3965478781c2d0b456446bf (diff) | |
| download | pardes-b7eb31674e01c992cafc91518e161258b921bd33.tar.gz pardes-b7eb31674e01c992cafc91518e161258b921bd33.zip | |
A pane's ctl read says Collapse and a PDF's PdfFit and PdfTint (`collapsed`, `fit:height tint:full`), and a Dump keeps the PDF's two
Neither showed in the tag or the ctl, and a Restore brought a PDF back
at width fit and the default tint. The ctl read ends with `collapsed`
when it is, and a PDF's `fit:` and `tint:` in the words PdfFit and
PdfTint take; the dump's image record carries pdf_fit and pdf_tint
(empty in older dumps: the defaults).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/image.zig')
| -rw-r--r-- | src/image.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/image.zig b/src/image.zig index 3a3f1932..9f635d1c 100644 --- a/src/image.zig +++ b/src/image.zig @@ -875,6 +875,8 @@ pub fn dumpPane( .terminal => .terminal, } else .commodore, .ascii = if (pane.image) |state| state.ascii else true, + .pdf_fit = if (comptime pardes.pdf_enabled) (if (pane.pdf) |pv| @tagName(pv.fit) else "") else "", + .pdf_tint = if (comptime pardes.pdf_enabled) (if (pane.pdf) |pv| @tagName(pv.tint) else "") else "", }, }; } |
