From a70db34fc9d20f858ecfe1c0c634a9ea7d6e16ef Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 24 Dec 2017 11:08:43 +0100
Subject: [PATCH] tweaks: remove two irrelevant conditions

They were mistakenly added by changeset fb85c055, four commits ago.
---
 src/text.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/text.c b/src/text.c
index 3f099c8d..2f01be67 100644
--- a/src/text.c
+++ b/src/text.c
@@ -583,13 +583,13 @@ bool comment_line(undo_type action, filestruct *line, const char *comment_seq)
 	openfile->totsize -= pre_len + post_len;
 
 	/* 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)
 		openfile->mark_x = 0;
 	    else
 		openfile->mark_x -= pre_len;
 	}
-	if (line == openfile->current && openfile->current_x > 0) {
+	if (line == openfile->current) {
 	    if (openfile->current_x < pre_len)
 		openfile->current_x = 0;
 	    else
-- 
GitLab