diff options
author | Michael Muré <batolettre@gmail.com> | 2019-04-14 14:12:44 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-04-14 14:12:44 +0200 |
commit | d862575d80a859dd4ce42fb10a6dbb49828544f1 (patch) | |
tree | 27e2409d7e17990df1ab5c1946d575b5b3692ead /bug/op_edit_comment.go | |
parent | 5eeeae7cdf24083277076041c4e8cdc6b4737fda (diff) | |
download | git-bug-d862575d80a859dd4ce42fb10a6dbb49828544f1.tar.gz |
bug: fix EditCommentOperation targeting the wrong comment
fix #126
Diffstat (limited to 'bug/op_edit_comment.go')
-rw-r--r-- | bug/op_edit_comment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bug/op_edit_comment.go b/bug/op_edit_comment.go index cf5c2d51..49b6a1af 100644 --- a/bug/op_edit_comment.go +++ b/bug/op_edit_comment.go @@ -48,7 +48,7 @@ func (op *EditCommentOperation) Apply(snapshot *Snapshot) { // Track the index in the []Comment switch item.(type) { - case *CreateTimelineItem, *CommentTimelineItem: + case *CreateTimelineItem, *AddCommentTimelineItem: commentIndex++ } } |