Fix TabSwitch to work by tab name as well

This commit is contained in:
Zachary Yedidia
2017-04-02 09:27:04 -04:00
parent be2d3c9c1e
commit dd87769090
2 changed files with 2 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ func TabSwitch(args []string) {
for _, t := range tabs {
v := t.views[t.CurView]
if v.Buf.GetName() == args[0] {
curTab = v.Num
curTab = v.TabNum
found = true
}
}