From b641d675612a3d9cf7e953d133413c0f275e49e5 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sat, 28 May 2016 11:36:48 -0400 Subject: [PATCH] Rematch every time a replacement is made --- cmd/micro/command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/micro/command.go b/cmd/micro/command.go index 6fae23bf..1d8d0246 100644 --- a/cmd/micro/command.go +++ b/cmd/micro/command.go @@ -162,6 +162,9 @@ func HandleCommand(input string) { // The 'check' flag was used Search(search, view, true) view.Relocate() + if settings["syntax"].(bool) { + view.matches = Match(view) + } RedrawAll() choice, canceled := messenger.YesNoPrompt("Perform replacement? (y,n)") if canceled {