Seems like you did the right thing. The driver coming up from behind on the left had to yield to you anyway as you were ahead of them, and you wisely placed yourself out of conflict with a potential (then actual) right turn by the other motor vehicle driver by moving left. Don't change a thing.