tweaks: remove a superfluous condition
When the WAS_FINAL_LINE flag is relevant (when NO_NEWLINES isn't set), the only way for 'current' to be equal to 'filebot' is when 'current_x' is zero.master
parent
64d1711a24
commit
dae88f8dc7
|
@ -1277,7 +1277,7 @@ void add_undo(undo_type action)
|
||||||
* or we won't be able to restore it later. */
|
* or we won't be able to restore it later. */
|
||||||
case ADD:
|
case ADD:
|
||||||
/* If a new magic line will be added, an undo should remove it. */
|
/* If a new magic line will be added, an undo should remove it. */
|
||||||
if (openfile->current == openfile->filebot && openfile->current_x == 0)
|
if (openfile->current == openfile->filebot)
|
||||||
u->xflags = WAS_FINAL_LINE;
|
u->xflags = WAS_FINAL_LINE;
|
||||||
u->wassize--;
|
u->wassize--;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue