diff options
author | nyamatongwe <devnull@localhost> | 2002-05-07 05:52:15 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-05-07 05:52:15 +0000 |
commit | e0659aabb9fa019b85120e9fd12b3e9a354288ad (patch) | |
tree | 69129cf5ae6621418877333d8d7fd5df185bb2e6 /src | |
parent | 012b22b1c19ed8c2dab2ba9062af243f4d0177d6 (diff) | |
download | scintilla-mirror-e0659aabb9fa019b85120e9fd12b3e9a354288ad.tar.gz |
Clear all does not clear the contractionstate if in read-only mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index fa54c2f72..fbf44883c 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2319,7 +2319,9 @@ void Editor::ClearAll() { if (0 != pdoc->Length()) { pdoc->DeleteChars(0, pdoc->Length()); } - cs.Clear(); + if (!pdoc->IsReadOnly()) { + cs.Clear(); + } pdoc->EndUndoAction(); anchor = 0; currentPos = 0; |