Compare commits

..

No commits in common. 'main' and 'v0.4.3' have entirely different histories.
main ... v0.4.3

@ -169,7 +169,7 @@ func main() {
// no args, or interactive... read from stdin
// this is mainly for replacing text in vim
fi, _ := os.Stdin.Stat()
inputIsFromPipe := (fi.Mode() & os.ModeCharDevice) == 0
inputIsFromPipe = (fi.Mode() & os.ModeCharDevice) == 0
if len(args) == 0 && !PromptMode && inputIsFromPipe {
reader := bufio.NewReader(os.Stdin)
var buf bytes.Buffer

Loading…
Cancel
Save