-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paste functionality uses old, cached values #32
Comments
Similar things seem to occur on X11: alacritty/alacritty#3601
Does this also happen when copying from Alacritty to Alacritty, within the same instance? |
Ah, darn. I searched but didn't find this existing issue. I had figured the issue is in this underlying copy/paste
Yes. The video demonstrates 3 ways of copying text:
The video demonstrates case 2 when copying and pasting "bar". Sorry it's a little long-winded; it's a little less painful to watch if you speed it up to 2x or so. |
I don't see any way in which that would be possible. |
I agree. Since this problem reportedly occurs in both X11 and Wayland, I am looking at the underlying dependencies x11-clipboard and smithay-clipboard, respectively. Both use |
These datatypes certainly don't have that inherent problem. As |
This same behavior has started happening to me. Seems to be isolated to alacritty. If the problem is happening and I paste in to another terminal app(Gnome Terminal) then the pasting works without the "queuing". If I restart alacritty and try then it seems to work again. Next time this happens, what's the most helpful thing I can gather to try and diagnose this? Logs, I suppose. Anything else? alacritty version: 0.10.1 |
I have been having this problem as well on sway with alacritty. I always thought it was a tmux thing. But now that I quick using tmux and this problem appeared again. I don't think it happens because of the process running long enough. |
I am hitting samting similar.
Setup with tmux |
I've been observing this as well for some months assuming it was my setup. Details:
The symptoms are:
|
Happened under Xorg / i3, happens now under Wayland / Hyprland. Common denominator - Alacritty. Cmon guys... |
I'd suggest to retest alacritty on the recent master. |
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:
Example:
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:
The text was updated successfully, but these errors were encountered: