Selaa lähdekoodia

Merge pull request #22013 from tonistiigi/fix-go16-panic

Fix panic on winsize syscall
Alexander Morozov 9 vuotta sitten
vanhempi
commit
37f5caf8c5
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      pkg/term/term.go

+ 2 - 0
pkg/term/term.go

@@ -27,6 +27,8 @@ type State struct {
 type Winsize struct {
 type Winsize struct {
 	Height uint16
 	Height uint16
 	Width  uint16
 	Width  uint16
+	x      uint16
+	y      uint16
 }
 }
 
 
 // StdStreams returns the standard streams (stdin, stdout, stedrr).
 // StdStreams returns the standard streams (stdin, stdout, stedrr).