]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
grammar
[lyx.git] / src / DocIterator.cpp
index 51433d47814b617463aa30273e78d02b75c2a7f6..6115bf287992a0f7760ee9095bf816b675c6abc9 100644 (file)
@@ -315,7 +315,7 @@ void DocIterator::forwardPosIgnoreCollapsed()
        // FIXME: the check for asInsetMath() shouldn't be necessary
        // but math insets do not return a sensible editable() state yet.
        if (nextinset && !nextinset->asInsetMath()
-           && nextinset->editable() != Inset::HIGHLY_EDITABLE) {
+           && !nextinset->editable()) {
                ++top().pos();
                return;
        }
@@ -612,14 +612,7 @@ bool operator==(StableDocIterator const & dit1, StableDocIterator const & dit2)
 
 bool isLetter(DocIterator const & dit)
 {
-       return dit.inTexted()
-               && dit.inset().allowSpellCheck()
-               && dit.pos() != dit.lastpos()
-               && (dit.paragraph().isLetter(dit.pos())
-                   // We want to pass the ' and escape chars to ispell
-                   || contains(from_utf8(lyxrc.spellchecker_esc_chars + '\''),
-                               dit.paragraph().getChar(dit.pos())))
-               && !dit.paragraph().isDeleted(dit.pos());
+       return dit.inTexted() && dit.paragraph().isLetter(dit.pos());
 }
 
 } // namespace lyx