diff options
author | nyamatongwe <unknown> | 2003-03-18 09:16:44 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-03-18 09:16:44 +0000 |
commit | 79fee676f20f4847e666bff5d73bfe029b24aca0 (patch) | |
tree | 1db93b2f25bf5c6be1919839897bafa332b493ac /src | |
parent | 93a2a3df3efa35c356abea329e3401dfaca7a5b9 (diff) | |
download | scintilla-mirror-79fee676f20f4847e666bff5d73bfe029b24aca0.tar.gz |
Fixed problem with overstrike mode typing over the last character of the
file inserted before last character instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |