* stdlib-debug out of range fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23120 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-02-22 09:00:22 +00:00
parent 7889ccc0eb
commit ab6ec965fd

View File

@ -481,7 +481,7 @@ bool InsetText::completionSupported(Cursor const & cur) const
return false; return false;
Paragraph const & par = cur.paragraph(); Paragraph const & par = cur.paragraph();
return cur.pos() > 0 return cur.pos() > 0
&& !par.isLetter(cur.pos()) && (cur.pos() >= par.size() || !par.isLetter(cur.pos()))
&& par.isLetter(cur.pos() - 1); && par.isLetter(cur.pos() - 1);
} }