Correctly calculate dynamic attachment offset
Merge #149: Correctly determine attachment line in edit-message