Mercurial > vim
comparison src/ops.c @ 356:0f2b5d1b8117
updated for version 7.0092
author | vimboss |
---|---|
date | Fri, 24 Jun 2005 23:07:47 +0000 |
parents | 2d8c2622e1fa |
children | f713fc55bf7b |
comparison
equal
deleted
inserted
replaced
355:644578c9e219 | 356:0f2b5d1b8117 |
---|---|
2599 int i; | 2599 int i; |
2600 | 2600 |
2601 for (i = 0; i < NUM_REGISTERS; ++i) | 2601 for (i = 0; i < NUM_REGISTERS; ++i) |
2602 y_regs[i].y_array = NULL; | 2602 y_regs[i].y_array = NULL; |
2603 } | 2603 } |
2604 | |
2605 #if defined(EXITFREE) || defined(PROTO) | |
2606 void | |
2607 clear_registers() | |
2608 { | |
2609 int i; | |
2610 | |
2611 for (i = 0; i < NUM_REGISTERS; ++i) | |
2612 { | |
2613 y_current = &y_regs[i]; | |
2614 if (y_current->y_array != NULL) | |
2615 free_yank_all(); | |
2616 } | |
2617 } | |
2618 #endif | |
2604 | 2619 |
2605 /* | 2620 /* |
2606 * Free "n" lines from the current yank register. | 2621 * Free "n" lines from the current yank register. |
2607 * Called for normal freeing and in case of error. | 2622 * Called for normal freeing and in case of error. |
2608 */ | 2623 */ |