diff --git a/src/nano.c b/src/nano.c
index 4679c591bc5b6923eaee8d3ace649872e0e0e08a..61a4e16702786f702ab40d81738b2c1db0ba0266 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -1567,12 +1567,10 @@ bool do_int_spell_fix(const char *word)
 #ifndef NANO_SMALL
     if (old_mark_set) {
 	/* If the mark is on, partition the filestruct so that it
-	 * contains only the marked text, set edittop to the top of the
-	 * marked text, and turn the mark off. */
+	 * contains only the marked text, and turn the mark off. */
 	mark_order((const filestruct **)&top, &top_x,
 	    (const filestruct **)&bot, &bot_x);
 	filepart = partition_filestruct(top, top_x, bot, bot_x);
-	edittop = fileage;
 	UNSET(MARK_ISSET);
     }
 #endif
diff --git a/src/search.c b/src/search.c
index 7a3b707a1e5350d6ae82e6d577dfdc6e50b42c95..bd776c2981bb66f94bdaff7f0f3452fc65e1a47a 100644
--- a/src/search.c
+++ b/src/search.c
@@ -687,7 +687,7 @@ ssize_t do_replace_loop(const char *needle, const filestruct
     if (old_mark_set) {
 	/* If the mark is on, partition the filestruct so that it
 	 * contains only the marked text, set right_side_up properly,
-	 * set edittop to the top of the marked text, turn the mark off,
+	 * set edittop to the top of the partition, turn the mark off,
 	 * and refresh the screen. */
 	mark_order((const filestruct **)&top, &top_x,
 	    (const filestruct **)&bot, &bot_x);