From 79fee676f20f4847e666bff5d73bfe029b24aca0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 18 Mar 2003 09:16:44 +0000 Subject: Fixed problem with overstrike mode typing over the last character of the file inserted before last character instead. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 643c8eee4..080f499b7 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2815,7 +2815,7 @@ void Editor::AddCharUTF(char *s, unsigned int len, bool treatAsDBCS) { bool wasSelection = currentPos != anchor; ClearSelection(); if (inOverstrike && !wasSelection && !RangeContainsProtected(currentPos, currentPos + 1)) { - if (currentPos < (pdoc->Length() - 1)) { + if (currentPos < (pdoc->Length())) { if (!IsEOLChar(pdoc->CharAt(currentPos))) { pdoc->DelChar(currentPos); } -- cgit v1.2.3