Skip to content

Commit

Permalink
bugfix: parse -A and -B correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jrockway committed Sep 26, 2022
1 parent baca68b commit e0dd33b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/internal/jlog/jlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ func NewOutputFormatter(out Output, gen General) (*parse.OutputSchema, error) {
}

// Let -A and -B override -C.
if a := outs.AfterContext; a > 0 {
if a := out.AfterContext; a > 0 {
outs.AfterContext = a
}
if b := outs.BeforeContext; b > 0 {
if b := out.BeforeContext; b > 0 {
outs.BeforeContext = b
}

Expand Down

0 comments on commit e0dd33b

Please sign in to comment.