aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-08-26 12:29:15 +0000
committernyamatongwe <devnull@localhost>2007-08-26 12:29:15 +0000
commit5d44df4f005722f63755b256d018edc247bae323 (patch)
tree05668f07a809dbc760144e36e66810ed726fe384 /src
parent7c54fa9a88fb815da9decc86b311d4bbbfbf530d (diff)
downloadscintilla-mirror-5d44df4f005722f63755b256d018edc247bae323.tar.gz
Send SCN_MODIFYATTEMPTRO notification for Cut.
Diffstat (limited to 'src')
-rw-r--r--src/Document.h3
-rw-r--r--src/Editor.cxx1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Document.h b/src/Document.h
index c13114b75..9143ec6e4 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -142,6 +142,7 @@ public:
// Gateways to modifying document
void ModifiedAt(int pos);
+ void CheckReadOnly();
bool DeleteChars(int pos, int len);
bool InsertString(int position, const char *s, int insertLength);
int Undo();
@@ -244,8 +245,6 @@ public:
int BraceMatch(int position, int maxReStyle);
private:
- void CheckReadOnly();
-
CharClassify::cc WordCharClass(unsigned char ch);
bool IsWordStartAt(int pos);
bool IsWordEndAt(int pos);
diff --git a/src/Editor.cxx b/src/Editor.cxx
index a7aff6109..372ba0809 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3413,6 +3413,7 @@ void Editor::ClearDocumentStyle() {
}
void Editor::Cut() {
+ pdoc->CheckReadOnly();
if (!pdoc->IsReadOnly() && !SelectionContainsProtected()) {
Copy();
ClearSelection();