From c5e9a434b1e67eab0305765201ea7afe50e5f01f Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Mon, 23 May 2005 20:16:29 +0000
Subject: [PATCH] fix one last off-by-one error that occurs when
 do_gotolinecolumn() is used interactively

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2537 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 src/search.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c
index bb798cfc..40266e2d 100644
--- a/src/search.c
+++ b/src/search.c
@@ -993,7 +993,7 @@ void do_gotolinecolumn(int line, ssize_t column, bool use_answer, bool
 	 * number (which is zero-based) only if we hit Enter at the
 	 * statusbar prompt. */
 	if (!parse_line_column(answer, &line, &column) || line < 1 ||
-		column < 0) {
+		--column < 0) {
 	    if (i == 0)
 		statusbar(_("Come on, be reasonable"));
 	    display_main_list();
-- 
GitLab