Merge pull request #4 from ebetica/patch-1

Use the question when piping content
pull/5/head
Tony Worm 1 year ago committed by GitHub
commit ae93d8d362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -366,9 +366,9 @@ func main() {
}
// no args, interactive, or question... read from stdin
// no args, or interactive... read from stdin
// this is mainly for replacing text in vim
if len(args) == 0 && !PromptMode && Question == "" {
if len(args) == 0 && !PromptMode {
reader := bufio.NewReader(os.Stdin)
var buf bytes.Buffer
for {

Loading…
Cancel
Save