tweaks: remove two irrelevant conditions

They were mistakenly added by changeset fb85c055, four commits ago.
master
Benno Schulenberg 2017-12-24 11:08:43 +01:00
parent fbde1b2d71
commit a70db34fc9
1 changed files with 2 additions and 2 deletions

View File

@ -583,13 +583,13 @@ bool comment_line(undo_type action, filestruct *line, const char *comment_seq)
openfile->totsize -= pre_len + post_len; openfile->totsize -= pre_len + post_len;
/* If needed, adjust the position of the mark and then the cursor. */ /* If needed, adjust the position of the mark and then the cursor. */
if (line == openfile->mark && openfile->mark_x > 0) { if (line == openfile->mark) {
if (openfile->mark_x < pre_len) if (openfile->mark_x < pre_len)
openfile->mark_x = 0; openfile->mark_x = 0;
else else
openfile->mark_x -= pre_len; openfile->mark_x -= pre_len;
} }
if (line == openfile->current && openfile->current_x > 0) { if (line == openfile->current) {
if (openfile->current_x < pre_len) if (openfile->current_x < pre_len)
openfile->current_x = 0; openfile->current_x = 0;
else else