Skip to content

Commit

Permalink
fix nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
cfstras committed Aug 30, 2017
1 parent fdb32c2 commit 2478666
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssh/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ type winchMsg struct {
}

func (inst *instance) SendWindowSize() {
if inst.session == nil {
return
}
if w, h, err := inst.terminal.GetSize(); err != nil {
color.Redln("Error getting term size:", err)
} else {
Expand Down

0 comments on commit 2478666

Please sign in to comment.