]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetText.cpp
index 9a36bc14b8678b1aab3860b68fbe1253cf56fdb5..0e8f3ad5715f8bc42f3d32a99f235e91740b4e46 100644 (file)
@@ -481,7 +481,7 @@ bool InsetText::completionSupported(Cursor const & cur) const
                return false;
        Paragraph const & par = cur.paragraph();
        return cur.pos() > 0
-               && !par.isLetter(cur.pos())
+               && (cur.pos() >= par.size() || !par.isLetter(cur.pos()))
                && par.isLetter(cur.pos() - 1);
 }