Skip to content

Commit 9d94f4f

Browse files
authored
fix: macOS backspace processing (#1379)
Revert "fix: Remove line length limit on MacOS for input prompts (#839)" This reverts commit ccba2ba.
1 parent f816bbe commit 9d94f4f

File tree

3 files changed

+0
-52
lines changed

3 files changed

+0
-52
lines changed

cli/cliui/cliui_darwin.go

-31
This file was deleted.

cli/cliui/cliui_other.go

-10
This file was deleted.

cli/cliui/prompt.go

-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"fmt"
88
"os"
99
"os/signal"
10-
"runtime"
1110
"strings"
1211

1312
"github.com/bgentry/speakeasy"
@@ -48,16 +47,6 @@ func Prompt(cmd *cobra.Command, opts PromptOptions) (string, error) {
4847
if opts.Secret && isInputFile && isatty.IsTerminal(inFile.Fd()) {
4948
line, err = speakeasy.Ask("")
5049
} else {
51-
if !opts.IsConfirm && runtime.GOOS == "darwin" && isInputFile {
52-
var restore func()
53-
restore, err = removeLineLengthLimit(int(inFile.Fd()))
54-
if err != nil {
55-
errCh <- err
56-
return
57-
}
58-
defer restore()
59-
}
60-
6150
reader := bufio.NewReader(cmd.InOrStdin())
6251
line, err = reader.ReadString('\n')
6352

0 commit comments

Comments
 (0)