Index: dialog_search_replace.cpp
===================================================================
--- dialog_search_replace.cpp	(revision 3857)
+++ dialog_search_replace.cpp	(working copy)
@@ -317,8 +317,8 @@
 	int firstLine = 0;
 	if (sels.Count() > 0) firstLine = sels[0];
 	// if selection has changed reset values
+	curLine = firstLine;
 	if (firstLine < curLine) {
-		curLine = firstLine;
 		Modified = false;
 		LastWasFind = true;
 		pos = 0;
