Skip to content

Commit 6189993

Browse files
committed
Fix delta bug
1 parent dc2ba7e commit 6189993

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = 2.0.1
1+
VERSION = 2.0.2
22

33
PACKAGES := $(shell go list -f {{.Dir}} ./...)
44
GOFILES := $(addsuffix /*.go,$(PACKAGES))

Diff for: cmd/ts/main.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,13 @@ func main() {
139139
if err := printer(&line); err != nil {
140140
fmt.Fprintln(os.Stderr, "output error:", err)
141141
}
142-
if start != nil && start.MatchString(line.Text) {
142+
if start != nil {
143+
if start.MatchString(line.Text) {
144+
last = now
145+
line.Start = line.Text
146+
}
147+
} else {
143148
last = now
144-
line.Start = line.Text
145149
}
146150
i++
147151
}

0 commit comments

Comments
 (0)