func (w Window) CreateWindow(s *gomux.Session) { w1 := s.AddWindow(w.Name) w1p0 := w1.Pane(0) if w.Pane != nil { w.Pane.pane = w1p0 w.Pane.ExecCommand() w.Pane.SplitPane() } }
func (w Window) CreateWindow(s *gomux.Session) { attr := gomux.WindowAttr{ Name: w.Name, Directory: w.Directory, } w1 := s.AddWindowAttr(attr) w1p0 := w1.Pane(0) if w.Pane != nil { w.Pane.pane = w1p0 w.Pane.ExecCommand() w.Pane.SplitPane() } }