New Defects reported by Coverity Scan for LyX
Stephan Witt
st.witt at gmx.net
Tue Aug 25 22:21:45 UTC 2020
Am 25.08.2020 um 11:40 schrieb Jean-Marc Lasgouttes <lasgouttes at lyx.org>:
>
> Le 25/08/2020 à 11:06, Stephan Witt a écrit :
>> Next patch is the real change for #6401. I’d like to apply it soon. Any objections or possible improvements?
>
> It is difficult to understand what it does by reading it, and your commit log does not help much!
The change includes a rewrite of the cursor movement when „mac style“ is enabled and don’t change anything otherwise.
The new code for mac uses the document iterator to go forward or backward. The traversal stops at word boundaries.
If going forward the position increments until a word is reached (if not already inside) and stops at the end of the word.
If going backward it does the same in opposite direction. The cursor jumps over non-editable insets and math.
Editable (open) insets are entered and the cursor move detects word boundaries inside them.
I’m not sure if this should be part of the commit log. I can add it if you think this would be good.
Stephan
More information about the lyx-devel
mailing list