diff options
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);  			} | 
