0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0092

This commit is contained in:
Bram Moolenaar
2005-06-24 23:07:47 +00:00
parent 0a5fe2140d
commit 1ec484f58e
16 changed files with 174 additions and 18 deletions

View File

@@ -2602,6 +2602,21 @@ init_yank()
y_regs[i].y_array = NULL;
}
#if defined(EXITFREE) || defined(PROTO)
void
clear_registers()
{
int i;
for (i = 0; i < NUM_REGISTERS; ++i)
{
y_current = &y_regs[i];
if (y_current->y_array != NULL)
free_yank_all();
}
}
#endif
/*
* Free "n" lines from the current yank register.
* Called for normal freeing and in case of error.