Fix recursive search and replace in special case
Fixes
@@ -594,7 +594,7 @@ func Replace(args []string) {
view.Cursor.ResetSelection()
messenger.Reset()
found++
- } else {
+ }
if view.Cursor.HasSelection() {
searchStart = ToCharPos(view.Cursor.CurSelection[1], view.Buf)
} else {
@@ -602,7 +602,6 @@ func Replace(args []string) {
}
}
}
- }
view.Cursor.Relocate()
if found > 1 {
