diff options
Diffstat (limited to 'widgets/terminal.go')
-rw-r--r-- | widgets/terminal.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go index b6e8fc0e..a9c79884 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -134,7 +134,7 @@ func NewTerminal(cmd *exec.Cmd) (*Terminal, error) { return } term.writeMutex.Lock() - n, err = term.vterm.Write(buf[:n]) + _, err = term.vterm.Write(buf[:n]) term.writeMutex.Unlock() if err != nil { term.Close(err) @@ -166,7 +166,7 @@ func (term *Terminal) flushTerminal() { if n == 0 { break } - n, err = term.pty.Write(buf[:n]) + _, err = term.pty.Write(buf[:n]) if err != nil { term.Close(err) return |