mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 14:40:20 +09:00
Merge pull request #298 from boombuler/bug269
exit conditional replace if no match is left
This commit is contained in:
@@ -291,6 +291,9 @@ func Replace(args []string) {
|
||||
for {
|
||||
// The 'check' flag was used
|
||||
Search(search, view, true)
|
||||
if !view.Cursor.HasSelection() {
|
||||
break
|
||||
}
|
||||
view.Relocate()
|
||||
if view.Buf.Settings["syntax"].(bool) {
|
||||
view.matches = Match(view)
|
||||
|
||||
Reference in New Issue
Block a user