commit | 1ec484f58e9fef3666e80aa835d99a287c155911 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jun 24 23:07:47 2005 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jun 24 23:07:47 2005 +0000 |
tree | 0481a24509748a218d3abb861103c9c385b6f75e | |
parent | 0a5fe2140db2e6688a7ef42031a21d8293038715 [diff] [blame] |
updated for version 7.0092
diff --git a/src/ops.c b/src/ops.c index 4502313..bbeedbf 100644 --- a/src/ops.c +++ b/src/ops.c
@@ -2602,6 +2602,21 @@ 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.