mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2026-11-26 15:19:10 +01:00
With ideaput, the register is put into the clipboard for the IDE paste and the clipboard is put back afterwards (VIM-4371). In split mode the backend executes the paste again with its own clipboard, which is synced from the frontend. Since 2026.3 (IJPL-254899) the backend runs the action after a hop to the EDT, so the clipboard that was put back reaches it first, and the backend pastes the old system clipboard over the register text. The frontend editor action handler completes a continuation from the data context once the backend has executed the action. A new frontend split module puts it there, and the clipboard is put back only after it completes, with a timeout. Before 2026.3, or with the document synced by Rhizome, the clipboard is still put back right away. Several puts in a row are all sent before the first one is pasted on the backend, so the clipboard is put back once, after the last of them. Until then each put and each read of the clipboard register take the content from before the first put, and a write of the clipboard by IdeaVim drops the pending restore.