Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
However, now the cursor seems to "remember" a particular horizontal
position when moving up or down in a document when using the arrow
keys or page-up/down. That is, if I click the mouse somewhere in
the document window (towards the left side, say), I can then move
right or left with the arrow keys (or even by adding or deleting
text). However, when I then try navigating up or down with the
arrow keys (or page-up/down), the horizontal position of the cursor
jumps to wherever the cursor started -- wherever I clicked the
mouse. Clicking the mouse somewhere else causes this new horizontal
position to be "remembered".
Abdelrazak> Yes, I noticed that one also. I don't know the cause but
Abdelrazak> it should be reasonably easy to fix.
setTargetX is the command that remembers horizontal position. It is
called by setCursor, I believe.
I think I removed that and I that is obviously the cause for the bug.
We should maybe call it
unconditionally on update.
Yes, I'll put it back.
Abdel.