diff options
author | nyamatongwe <devnull@localhost> | 2000-05-23 13:15:01 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-05-23 13:15:01 +0000 |
commit | e453f6732990e045c9740e777380b06bfc6fc8a2 (patch) | |
tree | 2d212f10893095ae4fee57bd6f407ebbb976b2e5 | |
parent | 3d87535496d712d422f24354a33dd114bcc91f72 (diff) | |
download | scintilla-mirror-e453f6732990e045c9740e777380b06bfc6fc8a2.tar.gz |
Fixed error when delete performed at end of document.
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 6614a7fc9..de06756a5 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -334,6 +334,8 @@ void Document::ModifiedAt(int pos) { // Unlike Undo, Redo, and InsertStyledString, the pos argument is a cell number not a char number void Document::DeleteChars(int pos, int len) { + if ((pos + len) > Length()) + return; if (cb.IsReadOnly() && enteredReadOnlyCount==0) { enteredReadOnlyCount++; NotifyModifyAttempt(); |