Rematch every time a replacement is made

This commit is contained in:
Zachary Yedidia
2016-05-28 11:36:48 -04:00
parent e8d8da1443
commit b641d67561

View File

@@ -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 {