mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-28 23:53:19 +03:00
Deleting four superfluous checks.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5464 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
07e806e7f2
commit
c9e91df4e4
@ -6,6 +6,8 @@
|
||||
* src/winio.c (edit_draw): Move a check to a better place.
|
||||
* src/winio.c (edit_draw): Rename a label and elide an 'else'.
|
||||
* src/winio.c (edit_draw): Unindent after previous change.
|
||||
* src/color.c (reset_multis_before, reset_multis_after): Delete four
|
||||
superfluous checks.
|
||||
|
||||
2015-11-30 Benno Schulenberg <bensberg@justemail.net>
|
||||
* src/text.c (redo_cut, update_undo): When cutting reaches the EOF,
|
||||
|
@ -372,8 +372,6 @@ void reset_multis_after(filestruct *fileptr, int mindex)
|
||||
filestruct *oof;
|
||||
for (oof = fileptr->next; oof != NULL; oof = oof->next) {
|
||||
alloc_multidata_if_needed(oof);
|
||||
if (oof->multidata == NULL)
|
||||
continue;
|
||||
if (oof->multidata[mindex] != CNONE)
|
||||
oof->multidata[mindex] = -1;
|
||||
else
|
||||
@ -381,8 +379,6 @@ void reset_multis_after(filestruct *fileptr, int mindex)
|
||||
}
|
||||
for (; oof != NULL; oof = oof->next) {
|
||||
alloc_multidata_if_needed(oof);
|
||||
if (oof->multidata == NULL)
|
||||
continue;
|
||||
if (oof->multidata[mindex] == CNONE)
|
||||
oof->multidata[mindex] = -1;
|
||||
else
|
||||
@ -396,8 +392,6 @@ void reset_multis_before(filestruct *fileptr, int mindex)
|
||||
filestruct *oof;
|
||||
for (oof = fileptr->prev; oof != NULL; oof = oof->prev) {
|
||||
alloc_multidata_if_needed(oof);
|
||||
if (oof->multidata == NULL)
|
||||
continue;
|
||||
if (oof->multidata[mindex] != CNONE)
|
||||
oof->multidata[mindex] = -1;
|
||||
else
|
||||
@ -405,8 +399,6 @@ void reset_multis_before(filestruct *fileptr, int mindex)
|
||||
}
|
||||
for (; oof != NULL; oof = oof->prev) {
|
||||
alloc_multidata_if_needed(oof);
|
||||
if (oof->multidata == NULL)
|
||||
continue;
|
||||
if (oof->multidata[mindex] == CNONE)
|
||||
oof->multidata[mindex] = -1;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user