Commit 970a8093 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

remove unneeded code

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3121 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 3 additions and 5 deletions
+3 -5
...@@ -499,7 +499,8 @@ void read_file(FILE *f, const char *filename) ...@@ -499,7 +499,8 @@ void read_file(FILE *f, const char *filename)
else else
openfile->current_x = len; openfile->current_x = len;
/* Prepend the text at fileptr to the text at current. */ /* Tack the text at fileptr onto the beginning of the text
* at current. */
openfile->current->data = openfile->current->data =
charealloc(openfile->current->data, len + charealloc(openfile->current->data, len +
current_len + 1); current_len + 1);
...@@ -533,10 +534,7 @@ void read_file(FILE *f, const char *filename) ...@@ -533,10 +534,7 @@ void read_file(FILE *f, const char *filename)
/* Renumber starting with the last line of the file we /* Renumber starting with the last line of the file we
* inserted. */ * inserted. */
renumber(openfile->current); renumber(openfile->current);
} else }
/* Adjust the current x-coordinate to compensate for the
* change in the current line. */
openfile->current_x = 0;
openfile->totsize += get_totsize(openfile->fileage, openfile->totsize += get_totsize(openfile->fileage,
openfile->filebot); openfile->filebot);
......
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