On Wayland, two or three quick copies to one selection could lose the newest text. The compositor cancels an old write some time after a new write replaces it. If the new write came before that cancel, it failed, and the clipboard kept the older text. A write also failed while another application still read the older one.
In 0.9.13 a write always takes the selection. To serve pastes, a service keeps the text of at most four writes, and the clipboard and primary selections share them. When all four are in use, a new write drops the oldest write that a newer write replaced. It drops one that no application reads, if there is one. It never drops the current text of a selection. So the risk falls on the reader instead of the writer: an application that is still pasting from the dropped write, from either selection, gets cut-off or empty text. That text is always text the user already copied over. Clipboard describes the limit.
Fixed
- native: On Wayland, quick writes to one selection keep the newest text. When all four writes that a service keeps are in use, a new write drops the oldest replaced write, and a paste from that write ends early. See Clipboard. (#2255)
- native: Video playback no longer stutters or freezes at small negative
avSyncOffsetMsvalues, and a seek no longer shows a frame later than the frame that is due. See Video. (#2254) - native: A seek to the end of a video, or past it, now shows the last frame when the video is paused or plays without
loop. Before, the picture went blank. See Video. (#2252) - native: Kitty images no longer stay over the shell when an app draws them on the main screen, switches to the alternate screen, and then exits or suspends. An image that the app removes while its screen is hidden no longer shows when the app returns to that screen. See Image. (#2253)
- native: After a Session write that holds
ESC[2JorESC[3J, the next frame sends each visible Kitty image again, also after a split-footer replay reset. Before, kitty and Ghostty removed the images and the renderer placed them without sending them. See Image. (#2251) - native: Copies and text ranges now keep zero-width text, such as U+200B, at the start or end of a line and at the end of the text. Before, a copy of all the text in a
Textareawith "a" and a typed U+200B gave "a". See Textarea. (#2244) - native: In a
Textareaand in the Rust editor, Right from the start of a one-cell virtual extmark that touches the next one now stops at the end of the first extmark. Before, the cursor skipped both. See Editing buffers and views. (#2238)
Security
- native: The FFmpeg that the native library links statically now includes zlib 1.4 instead of 1.3.2. This fixes memory-safety bugs reported against zlib 1.3.2, such as the overruns in
inflateGetDictionary()andinflateSync(). See Deploy an OpenTUI application. (#2256)
API changes and documentation: https://opentui.com/docs/releases/0.9.13
What's Changed
- native: drive the edit marks model through the C ABI by @simonklee in #2231
- native: check the Markdown engine's properties through the C ABI by @simonklee in #2232
- native: table and properties for terminal replies through the C ABI by @simonklee in #2233
- native: check scene frames through the C ABI against full repaints by @simonklee in #2235
- native: model the text buffer through the C ABI by @simonklee in #2236
- native: check frames through the C ABI against a headless VT by @simonklee in #2234
- native: step Right over one touching atomic mark by @simonklee in #2238
- native: model the clipboard service against a scripted compositor by @simonklee in #2240
- native: check links and height changes in the output VT model by @simonklee in #2241
- native: model terminal image placement after invalidation by @simonklee in #2245
- native: model the video media clock through the C ABI by @simonklee in #2246
- core: model palette publication across query generations by @simonklee in #2243
- native: check P7, P19 and pending layouts through the C ABI by @simonklee in #2242
- native: copy zero-width text at range edges as one chunk would by @simonklee in #2244
- native: send Kitty images again after a screen clear by @simonklee in #2251
- native: show the last frame after a seek to the end by @simonklee in #2252
- native: keep the newest of quick Wayland clipboard writes by @simonklee in #2255
- core: make the stream underrun test wait for decoded input by @simonklee in #2247
- native: delete Kitty images on the screen a switch leaves by @simonklee in #2253
- native: update bundled zlib to 1.4 by @simonklee in #2256
- native: keep video playing at negative A/V offsets by @simonklee in #2254
Full Changelog: v0.9.12...v0.9.13