0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.856

Problem:    When calling system() multi-byte clipboard contents is garbled.
Solution:   Save and restore the clipboard contents.  (Yukihiro Nakadaira)
This commit is contained in:
Bram Moolenaar
2013-03-13 17:50:25 +01:00
parent b3cb982162
commit 1a0316ca2a
8 changed files with 101 additions and 6 deletions

View File

@@ -1016,6 +1016,19 @@ put_register(name, reg)
/* Send text written to clipboard register to the clipboard. */
may_set_selection();
# endif
}
void
free_register(reg)
void *reg;
{
struct yankreg tmp;
tmp = *y_current;
*y_current = *(struct yankreg *)reg;
free_yank_all();
vim_free(reg);
*y_current = tmp;
}
#endif