OpenTUI 0.9.13
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)
The published API did not change in this release.