Jean-Marc Lasgouttes <lasgouttes <at> lyx.org> writes: > OK, what about using TexMetrics::cursorX() or maybe > BufferView::getPos()? The later is what is called by setTargetX.
Nothing that work. I think the reason is when the cursor moves along a row as a result of key board presses of arrow keys, drawparagraph() method is not get called. By for mouse presses, drawparagraph() method gets called. Am I correct? (I think I confirmed this with a little test; but not a proper one) If so, is there a particular reason for this implementation difference? If somehow (I do not know how) we set to call drawparagraph() method each time an arraow key is pressed (even when the cursor is in the same row/ paragraph) will it be a high load to LyX. Thanks Hashini