Add scrollmargin option, rename scrollSpeed to scrollspeed for consistency, make help.md more consistent (replaced some spaces with tabs)

This commit is contained in:
Camille Scholtz
2016-05-20 19:44:16 +02:00
parent 096221fd0e
commit 116b247439
5 changed files with 86 additions and 75 deletions

View File

@@ -149,7 +149,8 @@ func HandleCommand(input string, view *View) {
if strings.Contains(flags, "c") {
// The 'check' flag was used
Search(search, view, true)
view.Relocate(0)
scrollmargin := int(settings["scrollmargin"].(float64))
view.Relocate(scrollmargin)
Redraw(view)
choice, canceled := messenger.YesNoPrompt("Perform replacement? (y,n)")
if canceled {