aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-05-07 10:50:38 +0000
committernyamatongwe <devnull@localhost>2005-05-07 10:50:38 +0000
commit4a66b9e90218517ee62ce77ac1733e30976065ea (patch)
tree4bf911b047a0c992d2dfb9e74b63c66ebe0e1e4f /src/CellBuffer.cxx
parent989fa6eab0a21fbe09caa337dcce1348e5bd4aec (diff)
downloadscintilla-mirror-4a66b9e90218517ee62ce77ac1733e30976065ea.tar.gz
Patch from Robert that avoids slow performance for multiple step undo
or redo by only modifying the scroll bars at the end. When document is read only, undo and redo send a SCN_MODIFYATTEMPTRO notification.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 772f48e6e..2bb4f5a6c 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -1024,7 +1024,7 @@ void CellBuffer::DeleteUndoHistory() {
}
bool CellBuffer::CanUndo() {
- return (!readOnly) && (uh.CanUndo());
+ return uh.CanUndo();
}
int CellBuffer::StartUndo() {
@@ -1052,7 +1052,7 @@ void CellBuffer::PerformUndoStep() {
}
bool CellBuffer::CanRedo() {
- return (!readOnly) && (uh.CanRedo());
+ return uh.CanRedo();
}
int CellBuffer::StartRedo() {