mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-16 22:10:26 +00:00
command: Apply small cosmetics to openTerm()
This commit is contained in:
parent
63b6a1e6cf
commit
58b6917526
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue