When there are multiple errors with the same message on the same line, only one is added, even if they have different offsets.
This happens when one uses DefaultErrorSource.addError().
Attached a macro to reproduce this behaviour (encountered it while testing the SpellCheck plugin).
Attached a potential fix (take offsets into account when doing comparison). I think it doesn't interfere with LineKey...