Skip to content

Commit

Permalink
Revert "Avoid possible issues introduced with copying every time"
Browse files Browse the repository at this point in the history
This reverts commit 1c2f446.
  • Loading branch information
andydotxyz committed Feb 25, 2024
1 parent 1c2f446 commit d36fc97
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions term.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,7 @@ func (t *Terminal) run() {
fyne.LogError("pty read error", err)
}

lenLeftOver := len(leftOver)
fullBuf := buf
if lenLeftOver > 0 {
fullBuf = append(leftOver, buf[:num]...)
num += lenLeftOver
}
leftOver = t.handleOutput(fullBuf[:num])
leftOver = t.handleOutput(append(leftOver, buf[:num]...))
if len(leftOver) == 0 {
t.Refresh()
}
Expand Down

0 comments on commit d36fc97

Please sign in to comment.