I found this meta question, but I am not sure if this is the same issue.
On this question, I did some reformatting of the indentation in the code block to make it a bit more readable and it was submitted for peer review. A few minutes later, it appears the OP made an edit that added some additional code. It looks like my suggested edit was applied when the OP saved his/her edit, and it looks like he got the "credit" for the edit.
I'm not really concerned about the 2 rep points; I'm more curious why this happened and if this is a bug (or limitation) in the editing feature, or if this is known/intended behavior?