Add center action to center the view on the cursor

This commit is contained in:
Zachary Yedidia
2016-08-24 15:48:11 -07:00
parent b818011715
commit dbdfef632e
3 changed files with 21 additions and 1 deletions

View File

@@ -249,7 +249,7 @@ func main() {
tabs = append(tabs, tab)
for _, t := range tabs {
for _, v := range t.views {
v.Relocate()
v.Center(false)
if settings["syntax"].(bool) {
v.matches = Match(v)
}