}
do_delete();
- marked_cut = CUT_TO_END;
+ marked_cut = CUT_TO_EOL;
return;
} else {
SET(MARK_ISSET);
* these. */
if (marked_cut == CUT_LINE) {
if (current_x > 0)
- marked_cut = CUT_TO_END;
+ marked_cut = CUT_TO_EOL;
else
placewewant = 0;
}
/* If we're doing a cut to end, we don't want anything else on
* the line, so we have to screw up all the work we just did and
* separate the line. */
- if (marked_cut == CUT_TO_END) {
+ if (marked_cut == CUT_TO_EOL) {
tmp = make_new_node(current);
tmp->data = mallocstrcpy(NULL, current->data + current_x);
splice_node(current, tmp, current->next);
/* Enumeration types. */
typedef enum {
- CUT_LINE, CUT_MARKED, CUT_TO_END
+ CUT_LINE, CUT_MARKED, CUT_TO_EOL
} cut_type;
typedef enum {