-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quote from WlDataOffer.receive: > The receiving client reads from the read end of the pipe until EOF and then closes its end, at which point the transfer is complete. The original idea was passing the stdin as the write pipe fd to the receive(). However, sometimes the clipboard content was not pasted when the richclip was called in neovim. That could be caused that, neovim does not read the stdout fast enough. Since when the receive call finishes, it ends the loop and quite the program. To fix this, just follow the doc to create a dedicated pipe. BTW, I was too lazy to do this at the beginning, since I was not aware of nix-rust at that time -- I didn't want to get hands dirty with 'unsafe'.
- Loading branch information
Showing
6 changed files
with
56 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters