commit 7af1a065e8c8b2633796f4d61bae1ea58187c280
Author: Richard Kimberly Heck <[email protected]>
Date:   Tue Jun 26 00:26:35 2018 -0400

    update assertion.
---
 src/Text.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Text.cpp b/src/Text.cpp
index 876c5d0..b38baa7 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -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(_(

Reply via email to