Commit fd9da07e authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

fix enum/#define conflict

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2086 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent fdd3becc
Showing with 4 additions and 4 deletions
+4 -4
...@@ -248,7 +248,7 @@ void do_cut_text(void) ...@@ -248,7 +248,7 @@ void do_cut_text(void)
} }
do_delete(); do_delete();
marked_cut = CUT_TO_END; marked_cut = CUT_TO_EOL;
return; return;
} else { } else {
SET(MARK_ISSET); SET(MARK_ISSET);
...@@ -324,7 +324,7 @@ void do_uncut_text(void) ...@@ -324,7 +324,7 @@ void do_uncut_text(void)
* these. */ * these. */
if (marked_cut == CUT_LINE) { if (marked_cut == CUT_LINE) {
if (current_x > 0) if (current_x > 0)
marked_cut = CUT_TO_END; marked_cut = CUT_TO_EOL;
else else
placewewant = 0; placewewant = 0;
} }
...@@ -414,7 +414,7 @@ void do_uncut_text(void) ...@@ -414,7 +414,7 @@ void do_uncut_text(void)
/* If we're doing a cut to end, we don't want anything else on /* 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 * the line, so we have to screw up all the work we just did and
* separate the line. */ * separate the line. */
if (marked_cut == CUT_TO_END) { if (marked_cut == CUT_TO_EOL) {
tmp = make_new_node(current); tmp = make_new_node(current);
tmp->data = mallocstrcpy(NULL, current->data + current_x); tmp->data = mallocstrcpy(NULL, current->data + current_x);
splice_node(current, tmp, current->next); splice_node(current, tmp, current->next);
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
/* Enumeration types. */ /* Enumeration types. */
typedef enum { typedef enum {
CUT_LINE, CUT_MARKED, CUT_TO_END CUT_LINE, CUT_MARKED, CUT_TO_EOL
} cut_type; } cut_type;
typedef enum { typedef enum {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment