Martin Vermeer <martin.verm...@tkk.fi> writes: > + // leave autocorrect mode if necessary > + if (autocorrectEnabled(cur) && c == ' ' && cur.autocorrect()) {
Two questions (probably related) - why do you pass cur to autocorrectEnabled, whereas it does not rely on the cursor? - why not put the cur.autocorrect() test into autocorrectEnabled, sicne they are always used together? Or maybe move the lyxrc check into Cursor::autocorrect. JMarc