update assertion.

This commit is contained in:
Richard Kimberly Heck 2018-06-26 00:26:35 -04:00
parent 41ddac5519
commit 7af1a065e8

View File

@ -925,8 +925,8 @@ bool canInsertChar(Cursor const & cur, char_type c)
"beginning of a paragraph. Please read the Tutorial."));
return false;
}
// LASSERT: Is it safe to continue here?
LASSERT(cur.pos() > 0, /**/);
// If something is wrong, ignore this character.
LASSERT(cur.pos() > 0, return false);
if ((par.isLineSeparator(cur.pos() - 1) || par.isNewline(cur.pos() - 1))
&& !par.isDeleted(cur.pos() - 1)) {
cur.message(_(