remove redundant code
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3211 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
615f4c71c0
Коммит
219a814de2
@ -515,6 +515,8 @@ bool do_wrap(filestruct *line)
|
|||||||
splice_node(openfile->current, make_new_node(openfile->current),
|
splice_node(openfile->current, make_new_node(openfile->current),
|
||||||
openfile->current->next);
|
openfile->current->next);
|
||||||
|
|
||||||
|
/* If the current line is the last line of the file, move the
|
||||||
|
* last line of the file down to the next line. */
|
||||||
if (openfile->filebot == openfile->current)
|
if (openfile->filebot == openfile->current)
|
||||||
openfile->filebot = openfile->current->next;
|
openfile->filebot = openfile->current->next;
|
||||||
|
|
||||||
@ -540,9 +542,6 @@ bool do_wrap(filestruct *line)
|
|||||||
if (openfile->current_x > wrap_loc) {
|
if (openfile->current_x > wrap_loc) {
|
||||||
same_line_wrap = FALSE;
|
same_line_wrap = FALSE;
|
||||||
|
|
||||||
if (openfile->filebot == openfile->current)
|
|
||||||
openfile->filebot = openfile->current->next;
|
|
||||||
|
|
||||||
openfile->current = openfile->current->next;
|
openfile->current = openfile->current->next;
|
||||||
openfile->current_x -= wrap_loc
|
openfile->current_x -= wrap_loc
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user