Files
neovim/runtime
Jan Edmund Lazo 67d7906652 clipboard: close stdout when copying via xclip #11617
test_registers.vim can fail even if a clipboard manager is running.
If a clipboard manager is not running, this test always fails with xclip.
Use xsel as a workaround.
https://github.com/astrand/xclip/issues/20 suggests closing stdout
when sending input via stdin.

Environment
- Ubuntu Xenial
- Vim 7.4 (any app with broken clipboard code will do)
- Neovim nightly

Steps to reproduce:
0. Start the clipboard manager.
1. Open a file in Vim on Linux.
   Vim should have +clipboard enabled.
   'set clipboard='
2. Yank some text to the clipboard register.
3. Quit Vim.
4. Run 'cd /path/to/neovim/repo/'
5. Run 'make oldtest'.
   Do not run any individual tests.
   They likely pass with or without this fix.

Before fix: test_registers.vim can fail.
After fix: test_registers.vim always passes.

Close https://github.com/neovim/neovim/issues/7958

https://wiki.ubuntu.com/ClipboardPersistence#The_state_of_things
2020-01-02 00:41:36 -08:00
..
2019-08-02 16:20:23 +02:00
2019-11-28 14:04:40 -08:00
2020-01-01 19:26:29 +01:00
2017-11-07 01:16:42 +01:00
2019-11-24 20:31:46 -05:00
2014-12-19 15:28:49 -05:00
2018-01-15 23:58:52 +01:00
2019-08-02 16:20:22 +02:00
2019-11-27 22:47:25 -08:00
2019-07-29 20:50:07 +02:00
2019-01-04 02:17:23 +01:00
2019-07-29 20:50:07 +02:00
2019-07-29 20:50:07 +02:00
2019-11-24 17:53:33 -08:00
2017-01-31 02:02:09 +01:00
2014-07-29 02:12:31 +00:00
2019-07-29 20:50:07 +02:00