1
0
forked from aniani/vim

updated for version 7.1-166

This commit is contained in:
Bram Moolenaar
2007-12-01 20:13:05 +00:00
parent c2a27c3dc3
commit 0a30746d70
2 changed files with 6 additions and 3 deletions

View File

@@ -927,8 +927,8 @@ get_register(name, copy)
int name;
int copy; /* make a copy, if FALSE make register empty. */
{
static struct yankreg *reg;
int i;
struct yankreg *reg;
int i;
#ifdef FEAT_CLIPBOARD
/* When Visual area changed, may have to update selection. Obtain the
@@ -967,7 +967,7 @@ get_register(name, copy)
}
/*
* Put "reg" into register "name". Free any previous contents.
* Put "reg" into register "name". Free any previous contents and "reg".
*/
void
put_register(name, reg)
@@ -977,6 +977,7 @@ put_register(name, reg)
get_yank_register(name, 0);
free_yank_all();
*y_current = *(struct yankreg *)reg;
vim_free(reg);
# ifdef FEAT_CLIPBOARD
/* Send text written to clipboard register to the clipboard. */