Commit 4ed81346 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

revert last change, as the new bahavior is consistent with the behavior

when you cut the magicline with the mark


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3112 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent d84cfb03
Showing with 2 additions and 7 deletions
+2 -7
......@@ -96,8 +96,6 @@ void do_delete(void)
openfile->mark_begin_x -= char_buf_len;
#endif
openfile->totsize--;
set_modified();
} else if (openfile->current != openfile->filebot) {
filestruct *foo = openfile->current->next;
......@@ -132,17 +130,14 @@ void do_delete(void)
/* If the NO_NEWLINES flag isn't set, and text has been added to
* the magicline as a result of deleting at the end of the line
* before filebot, add a new magicline. This effectively leaves
* the text unchanged, so don't mark the file as modified after
* doing this. */
* before filebot, add a new magicline. */
if (!ISSET(NO_NEWLINES) && openfile->current ==
openfile->filebot && openfile->current->data[0] != '\0')
new_magicline();
else
set_modified();
} else
return;
set_modified();
#ifdef ENABLE_COLOR
/* If color syntaxes are available and turned on, we need to call
......
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