simplify scrollmargins

This commit is contained in:
Camille Scholtz
2016-05-20 20:06:01 +02:00
parent 9791f192f8
commit 52f1be5725
3 changed files with 10 additions and 12 deletions

View File

@@ -149,8 +149,7 @@ func HandleCommand(input string, view *View) {
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 {