Hi JMarc, Jean-Marc Lasgouttes wrote:
> See: http://bugzilla.lyx.org/show_bug.cgi?id=1609 > > This patch fixes LyXText::getWord to operate on full LCursor instances > instead of simple CursorSlices. This fixes word selection, which was > the problem in bug 1609. I don't get exactly why this solves 1609, could you enlighten me? 1609 doesn't seem about needing 'deeper' cursors (at least at my dumb eyes). I feel rusty ;-) > I am not sure I understand how cursors work in the new world, so I > would be grateful if Alfredo or Andre' could have a look at it. All I > can say is that it seems to work. Most of it is straightforward > changes like 'from' => 'from.top()'. I'd use DocIterator instead of LCursor if you just need it only for positioning (and do not need the selection/dispatch part). Alfredo