mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 06:45:40 -04:00
command: Apply small cosmetics to openTerm()
This commit is contained in:
parent
63b6a1e6cf
commit
58b6917526
@ -1073,8 +1073,8 @@ func (h *BufPane) openTerm(args []string, newtab bool) {
|
||||
h.AddTab()
|
||||
id = MainTab().Panes[pane].ID()
|
||||
} else {
|
||||
for i, p := range h.tab.Panes {
|
||||
if p.ID() == h.ID() {
|
||||
for i, p := range MainTab().Panes {
|
||||
if p.IsActive() {
|
||||
pane = i
|
||||
id = p.ID()
|
||||
p.Close()
|
||||
|
Loading…
Reference in New Issue
Block a user