Skip to content

Commit

Permalink
Fixed string missing first character
Browse files Browse the repository at this point in the history
  • Loading branch information
tidwall committed Apr 4, 2021
1 parent 256b2c4 commit 817ec50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/jj/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func main() {
outs = res.String()
}
}

}
if a.outfile == nil {
f = os.Stdout
Expand Down Expand Up @@ -231,7 +232,7 @@ func main() {
outb = pretty.Ugly(outb)
}
}
if !a.pretty && !a.ugly {
if a.raw && (!a.pretty && !a.ugly) {
outb = pretty.Pretty(outb)
}
if !a.notty && isatty.IsTerminal(f.Fd()) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

set -e

VERSION="1.7.4"
VERSION="1.7.5"

cd $(dirname "${BASH_SOURCE[0]}")/..

Expand Down

0 comments on commit 817ec50

Please sign in to comment.