commit efdb543f8c6e2a36d207b88fd8aefc4cf1dc2a52
parent c24545fe9aa52da28252e5ad420bbffd0b14a12a
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sun, 12 Feb 2017 12:12:08 -0600
tweaks: fix compilation when configured with --enable-tiny
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/search.c b/src/search.c
@@ -579,14 +579,16 @@ ssize_t do_replace_loop(const char *needle, bool whole_word_only,
size_t match_len;
bool replaceall = FALSE;
bool skipone = FALSE;
+ bool mark_was_set = FALSE;
#ifndef NANO_TINY
- bool mark_was_set = openfile->mark_set;
filestruct *top, *bot;
size_t top_x, bot_x;
bool right_side_up = FALSE;
/* TRUE if (mark_begin, mark_begin_x) is the top of the mark,
* FALSE if (current, current_x) is. */
+ mark_was_set = openfile->mark_set;
+
/* If the mark is on, frame the region, and turn the mark off. */
if (mark_was_set) {
mark_order((const filestruct **)&top, &top_x,