diff options
author | nyamatongwe <unknown> | 2000-05-23 13:15:01 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-05-23 13:15:01 +0000 |
commit | d78209cfaac6af11a56e460aa264ec38e4607c99 (patch) | |
tree | 2d212f10893095ae4fee57bd6f407ebbb976b2e5 /src | |
parent | 9e33d28d84aa6a9d6de61eeef631fe80d72a53b0 (diff) | |
download | scintilla-mirror-d78209cfaac6af11a56e460aa264ec38e4607c99.tar.gz |
Fixed error when delete performed at end of document.
Diffstat (limited to 'src')
-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(); |