http://bugs.winehq.org/show_bug.cgi?id=13188
--- Comment #11 from Yu-Ning Feng fengyuning1984@gmail.com 2008-05-17 13:32:15 --- (In reply to comment #10)
the patch isn't correct, the start position is always kept (try using home and end keys, you'll see it's not modified)
<home> and <end> keys work as expected to me. As I understand (from the original code), the start position is kept before <enter> is hit. That is right and thus I do not change that. The start position is not kept (updated) when other threads output before input is done. My patch does this.
Or, do I misunderstand your words?
BTW, M-<backspace> (M-<DEL> in emacs' term) does nothing in emacs editing mode. I expect it to kill a word backward. A bug? Another topic, though.
what seems to be not 100% compatible with what MS does is that when echoing a single char we should simply use WriteConsole and not going back to updating the whole buffer once again
Discard the "rewrite" path then. The "forget" path may behave as you describe.
I'll send a patch later on (this week end likely)
It is much better that a developer handles the bug, and thanks.