Skip to content

Commit

Permalink
Fix compilation on mac/linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Naatan committed Sep 8, 2023
1 parent 4a47853 commit 6831d5f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions helpers_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
package termtest

import (
"bytes"
"errors"
)

var ERR_ACCESS_DENIED = errors.New("only used on windows, this should never match")

func cleanPtySnapshot(b []byte, _ bool) []byte {
return bytes.TrimRight(b, "\x00")
func cleanPtySnapshot(b []byte, cursorPos int, _ bool) ([]byte, int) {
return b, cursorPos
}

0 comments on commit 6831d5f

Please sign in to comment.