richedit: Made sure the caret position is stored when moving up/down.
commitdb95d69f992a1618e3f407a810b74fd6f8eaffaa
authorDylan Smith <dylan.ah.smith@gmail.com>
Fri, 4 Jul 2008 19:30:51 +0000 (4 15:30 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 7 Jul 2008 09:10:33 +0000 (7 11:10 +0200)
tree025e9f1fb5cb2db38de117ec96d08417af3b9e38
parent2f1c7b1610498e54cbd9a4dd3fdf4408e98ac7c4
richedit: Made sure the caret position is stored when moving up/down.

The caret's x position is stored in ME_TextEditor.nUDArrowX so that when
the caret is moved up or down, it will stay along the same horizontal
position, or at the end of a line.  Unfortunately, the value stored in
nUDArrowX was being unconditionally discarded in ME_ArrowKey, preventing
it from serving its purpose.
dlls/riched20/caret.c
dlls/riched20/editor.c