Commit dae88f8d authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -1277,7 +1277,7 @@ void add_undo(undo_type action)
* or we won't be able to restore it later. */
case ADD:
/* 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->wassize--;
break;
......
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