have you accidentally hit the fold mirror button on the drivers side door?
That IS EXACTLY what happened to me, reaching for the window up/down button, I accidentally touched the mirror button and it threw it out of synch.
Basically, I unlocked the door, got inside closed the door, window down and played with the mirror button and suddenly it came back to folding in/out....unfolded it, turned engine off, window up got out, hit lock and it auto folded back in....I was told by the dealership's service manager if this happens and you manually unfold the mirrors you would have to go through this and the car will relearn the function.
I hate how close those mirror buttons are to the front windows button switches! They could have put them in the door! :eek