From c88a2fd9caa6306837dbd874cfac1fdb69352709 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 22 Mar 2018 15:20:05 +0100
Subject: [PATCH] tweaks: elide an unneeded and shadowing variable

---
 src/search.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/search.c b/src/search.c
index 4dff2f57..cf7a19ef 100644
--- a/src/search.c
+++ b/src/search.c
@@ -840,11 +840,10 @@ void do_gotolinecolumn(ssize_t line, ssize_t column, bool use_answer,
 
 #ifndef NANO_TINY
 		if (ISSET(SOFTWRAP)) {
-			filestruct *line = openfile->current;
 			size_t leftedge = leftedge_for(xplustabs(), openfile->current);
 
-			rows_from_tail = (editwinrows / 2) -
-						go_forward_chunks(editwinrows / 2, &line, &leftedge);
+			rows_from_tail = (editwinrows / 2) - go_forward_chunks(
+							editwinrows / 2, &openfile->current, &leftedge);
 		} else
 #endif
 			rows_from_tail = openfile->filebot->lineno -
-- 
GitLab