cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4153 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2007-08-16 02:46:26 +00:00
parent 908b127b44
commit 723cbe3191
1 changed files with 7 additions and 8 deletions

View File

@ -695,8 +695,7 @@ void do_insertfile(
filestruct *edittop_save = openfile->edittop; filestruct *edittop_save = openfile->edittop;
size_t current_x_save = openfile->current_x; size_t current_x_save = openfile->current_x;
ssize_t current_y_save = openfile->current_y; ssize_t current_y_save = openfile->current_y;
bool at_edittop = FALSE; bool edittop_inside = FALSE;
/* Whether we're at the top of the edit window. */
#ifndef NANO_TINY #ifndef NANO_TINY
bool do_mark_shift = FALSE; bool do_mark_shift = FALSE;
#endif #endif
@ -804,14 +803,14 @@ void do_insertfile(
/* If we're not inserting into a new buffer, partition /* If we're not inserting into a new buffer, partition
* the filestruct so that it contains no text and hence * the filestruct so that it contains no text and hence
* looks like a new buffer, keep track of whether the * looks like a new buffer, keep track of whether the
* top of the partition is the top of the edit * top of the edit window is inside the partition, and
* window, and keep track of whether the mark begins * keep track of whether the mark begins inside the
* inside the partition and will need adjustment. */ * partition and will need adjustment. */
filepart = partition_filestruct(openfile->current, filepart = partition_filestruct(openfile->current,
openfile->current_x, openfile->current, openfile->current_x, openfile->current,
openfile->current_x); openfile->current_x);
at_edittop = edittop_inside =
(openfile->fileage == openfile->edittop); (openfile->edittop == openfile->fileage);
#ifndef NANO_TINY #ifndef NANO_TINY
if (openfile->mark_set) if (openfile->mark_set)
do_mark_shift = (openfile->current_x <= do_mark_shift = (openfile->current_x <=
@ -873,7 +872,7 @@ void do_insertfile(
/* If we were at the top of the edit window before, set /* If we were at the top of the edit window before, set
* the saved value of edittop to the new top of the edit * the saved value of edittop to the new top of the edit
* window. */ * window. */
if (at_edittop) if (edittop_inside)
edittop_save = openfile->fileage; edittop_save = openfile->fileage;
/* Update the current x-coordinate to account for the /* Update the current x-coordinate to account for the