tl;dr: What you did was not just acceptable but even a good thing, if not the right thing to do.
In general, editing a question in a way that invalidates existing answers, is heavily frowned-upon, for several reasons:
- It wastes the answerer's time: they took the time to compose an answer to a question that was then un-asked.
- If they don't notice that the question has changed (and there is no automatic notification AFAIK), it may make them look bad.
- Since the answer doesn't answer the question, it will be down-voted.
The most important reason why people react heavily to changing a question in a way that invalidatedinvalidates existing answers, is that such edits are often a sign of a Chameleon Question, which are often huge time-sinks, and often turn out to become ever more specialized with each iteration, until they reach the point where they are not useful to anyone except the asker (and sometimes not even that).
HOWEVER: None of that applies to your case!
- You didn't waste anybody's time. Not really. All the answerer needs to do is cut&pastecut & paste half of his answer to the second question.
- By leaving a comment, you both notified the answerer that the question has changed, as well as any readers that this answer applies to an earlier version of the question.
- Likewise, by leaving a comment, you notified any voters that the answer applies to an earlier version of the question.
In fact, you didn't really invalidate any answers at all, the answers are just answering more than what you are asking.
And your question is clearly not a Chameleon Question that constantly changes what is being asked. First off, you only made one change, secondly, you are not asking something different, you are only asking less, and third, actually you are not even doing that,that; you are just splitting it.
Most importantly, you explicitly engaged in communication with the answerer in the comments and the wider community.
So, in summary, what you did improved your question, improved the site, made the web a better place, and didn't hurt anyone. All good.