Commit 884ca537 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4140 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 3305c11c
Showing with 10 additions and 9 deletions
+10 -9
...@@ -344,23 +344,24 @@ void move_to_filestruct(filestruct **file_top, filestruct **file_bot, ...@@ -344,23 +344,24 @@ void move_to_filestruct(filestruct **file_top, filestruct **file_bot,
renumber(file_bot_save->next); renumber(file_bot_save->next);
} }
/* Since the text has now been saved, remove it from the filestruct. /* Since the text has now been saved, remove it from the
* If the mark begins inside the partition, set the beginning of the * filestruct. */
* mark to where the saved text used to start. */
openfile->fileage = (filestruct *)nmalloc(sizeof(filestruct)); openfile->fileage = (filestruct *)nmalloc(sizeof(filestruct));
openfile->fileage->data = mallocstrcpy(NULL, ""); openfile->fileage->data = mallocstrcpy(NULL, "");
openfile->filebot = openfile->fileage; openfile->filebot = openfile->fileage;
/* Restore the current line and cursor position. If the mark begins
* inside the partition, set the beginning of the mark to where the
* saved text used to start. */
openfile->current = openfile->fileage;
openfile->current_x = top_x;
#ifndef NANO_TINY #ifndef NANO_TINY
if (mark_inside) { if (mark_inside) {
openfile->mark_begin = openfile->fileage; openfile->mark_begin = openfile->current;
openfile->mark_begin_x = top_x; openfile->mark_begin_x = openfile->current_x;
} }
#endif #endif
/* Restore the current line and cursor position. */
openfile->current = openfile->fileage;
openfile->current_x = top_x;
top_save = openfile->fileage; top_save = openfile->fileage;
/* Unpartition the filestruct so that it contains all the text /* Unpartition the filestruct so that it contains all the text
......
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