Yesterday, I suggested an edit to a question. While I fixed up some grammar, the majority of the edit was pasting in the code that the asker had decided to put in an answer instead of editing it into his question. This edit was rejected because:
This edit deviates from the original intent of the post. Even edits that must make drastic changes should strive to preserve the goals of the post's owner.
Should I refrain from adding the code when it's given in the future? My edit summary wasn't quite that clear. Rather than
Fixed the English and added the code from his 'answer'
I could have written something like
Fixed English; author added their code later as an answer so I'm putting that in the question instead
but at the time, the former seemed to be enough.
Was I right to edit the question?