mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-24 02:02:45 +03:00
cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4140 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
3305c11c7f
commit
884ca5373b
21
src/nano.c
21
src/nano.c
@ -344,22 +344,23 @@ void move_to_filestruct(filestruct **file_top, filestruct **file_bot,
|
||||
renumber(file_bot_save->next);
|
||||
}
|
||||
|
||||
/* Since the text has now been saved, remove it from the filestruct.
|
||||
* If the mark begins inside the partition, set the beginning of the
|
||||
* mark to where the saved text used to start. */
|
||||
/* Since the text has now been saved, remove it from the
|
||||
* filestruct. */
|
||||
openfile->fileage = (filestruct *)nmalloc(sizeof(filestruct));
|
||||
openfile->fileage->data = mallocstrcpy(NULL, "");
|
||||
openfile->filebot = openfile->fileage;
|
||||
#ifndef NANO_TINY
|
||||
if (mark_inside) {
|
||||
openfile->mark_begin = openfile->fileage;
|
||||
openfile->mark_begin_x = top_x;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Restore the current line and cursor position. */
|
||||
/* 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
|
||||
if (mark_inside) {
|
||||
openfile->mark_begin = openfile->current;
|
||||
openfile->mark_begin_x = openfile->current_x;
|
||||
}
|
||||
#endif
|
||||
|
||||
top_save = openfile->fileage;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user