On Thu, Oct 10, 2002 at 12:15:38PM +0200, Jean-Marc Lasgouttes wrote: > Andre> Patch attached. > > A behaviour that would seem reasonable to me when handling those WORD > lfuns is that they would be like there non-word counterpart except > that they would do as if the inset were locked. That is, if there is a > faction right of cursor, lfun_right would go in the fraction (if it is > not locked) and lfun_wordright would jump over it unconditionnally? > I think this is a good implementation of the word notion and would > maybe even make the locking feature useless. > > What do you think? I took a look, but the code is a bit too > complicated for me to change safely.
I could implemnent this. It would basically be something like bool MathCursor::wordleft(bool sel) { autocorrect_ = false; targetx_ = -1; // "no target" if (inMacroMode()) { macroModeClose(); return true; } selHandle(sel); return posLeft() || idxLeft() || popLeft() || selection_; } Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)