alacritty / alacritty/copypasta

Paste functionality uses old, cached values

Aperta
#32 11 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
350
Fork
39
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I use Alacritty on Wayland, specifically with the Sway window manager. Alacritty uses this underlying library to handle text copying and pasting. When pasting text from the clipboard with Alacritty (using default Ctrl+Shift+V key binding) the pasted text will actually be older, previously copied text. Pasting again will eventually paste the most recently copied text, however it may take several repetitions before it "bubbles" up.

This only seems to occur on a very long running Alacritty instance. For example, I have several Alacritty instances open, and the recently started processes do not exhibit this issue, but a very old instance does exhibit this behavior and continues to do so.

Steps to reproduce:
1. Start Alacritty and use the same instance over the course of many days.
2. Copy text to clipboard using any means (other applications that have access to Wayland clipboard or Alacritty itself)
3. Paste text using Alacritty. The pasted text will incorrectly be previously copied text. Subsequent pastes will eventually paste the most recently copied text.

Example:
* Copy "foo" from text using some application.
* In Alacritty at a shell, execute a Paste hot key (Ctrl+Shift+V by default)
* "foo" should be output to the screen. If it isn't, it may be "queued up". Keep retrying the Paste operation until "foo" is outputted.
* Copy "bar" from text using some application.
* Repeat Paste hot key an arbitrary amount of times. Alacritty will output "foo" each time until eventually "bar" is output

Note: In the above, "some application" can be anything that is able to copy text to the Wayland clipboard. The above example occurs for both copying using Alacritty's highlighting and Ctrl+Shift+C, or copying text in Firefox.

Here is a Youtube video I created which demonstrates the issue:
[![Youtube video](https://img.youtube.com/vi/fJmeqtc9d4E/0.jpg)](https://www.youtube.com/watch?v=fJmeqtc9d4E)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.