if strings.Contains(flags, "c") {
// The 'check' flag was used
Search(search, view, true)
- scrollmargin := int(settings["scrollmargin"].(float64))
- view.Relocate(scrollmargin)
+ view.Relocate()
Redraw(view)
choice, canceled := messenger.YesNoPrompt("Perform replacement? (y,n)")
if canceled {
}
if choice {
view.Cursor.DeleteSelection()
- view.eh.Insert(match[0], replace)
+ view.Buf.Insert(match[0], replace)
view.Cursor.ResetSelection()
messenger.Reset()
} else {
continue
}
} else {
- view.eh.Replace(match[0], match[1], replace)
+ view.Buf.Replace(match[0], match[1], replace)
}
}
if !found {