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:
13
src/ops.c
13
src/ops.c
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user