aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_edit_comment.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-04-14 14:12:44 +0200
committerMichael Muré <batolettre@gmail.com>2019-04-14 14:12:44 +0200
commitd862575d80a859dd4ce42fb10a6dbb49828544f1 (patch)
tree27e2409d7e17990df1ab5c1946d575b5b3692ead /bug/op_edit_comment.go
parent5eeeae7cdf24083277076041c4e8cdc6b4737fda (diff)
downloadgit-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.go2
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++
}
}