mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
Fix TabSwitch to work by tab name as well
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user