Skip to content

Commit

Permalink
Fix crash when plumbing on empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed May 2, 2020
1 parent 438ceb1 commit 9ae5e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/plumb.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func PlumbExecuteOrFindNext(From, To demodel.Position, buff *demodel.CharBuffer,
pdot.Start = dot.Start - 100
}
if dot.End+100 < uint(len(buff.Buffer)) {
pdot.End = pdot.End + 100
pdot.End = dot.End + 100
} else {
pdot.End = uint(len(buff.Buffer))
}
Expand Down

0 comments on commit 9ae5e05

Please sign in to comment.