From fd759d5ca333197a49985286d3f4122b89288b06 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 13 Apr 2015 10:59:12 +0000
Subject: [PATCH] Fixing compilation with --enable-tiny (oops), and mentioning
 also the Savannah page as a place for reporting bugs.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5195 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog    | 4 ++++
 README       | 3 ++-
 src/search.c | 4 ++--
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9b9827c0..f3e8273e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-13  Benno Schulenberg  <bensberg@justemail.net>
+	* src/search.c (do_replace_loop): Fix compilation with --enable-tiny.
+	* README: Mention also the Savannah page for reporting bugs.
+
 2015-04-12  Benno Schulenberg  <bensberg@justemail.net>
 	* src/browser.c (filesearch_init): Stop M-\ and M-/ in WhereisFile
 	menu (reached via ^R ^T ^W) from doing also an unrequested search
diff --git a/README b/README
index c0e7da6e..9fa2f032 100644
--- a/README
+++ b/README
@@ -60,7 +60,8 @@ Mailing Lists and Bug Reports
 	subscribe to.
 
 	For general bug reports, send a description of the problem to
-	nano@nano-editor.org or directly to the development list.
+	nano@nano-editor.org or to the development list, or file it on
+	the Savannah page (https://savannah.gnu.org/bugs/?group=nano).
 
 Current Status
 
diff --git a/src/search.c b/src/search.c
index 5c62cbd6..f96d6a9b 100644
--- a/src/search.c
+++ b/src/search.c
@@ -842,11 +842,11 @@ ssize_t do_replace_loop(
 		    if (*real_current_x < openfile->current_x + match_len)
 			*real_current_x = openfile->current_x + match_len;
 		    *real_current_x += length_change;
+#ifndef NANO_TINY
 		    bot_x = *real_current_x;
 		}
-#ifndef NANO_TINY
-	    }
 #endif
+	    }
 
 	    /* Set the cursor at the last character of the replacement
 	     * text, so searching will resume after the replacement
-- 
GitLab