Skip to content

Commit

Permalink
none: open with '-p'
Browse files Browse the repository at this point in the history
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
  • Loading branch information
Shane-XB-Qian committed Oct 30, 2023
1 parent bab8db5 commit bcceee5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified jj
Binary file not shown.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ loop:
os.Exit(1)
}
if open2edit || (open2CdOrEdit && !fi.IsDir()) {
cmd := exec.Command("vim", fArg...)
cmd := exec.Command("vim", append([]string{"-p"}, fArg...)...)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand Down

0 comments on commit bcceee5

Please sign in to comment.