diff options
author | nyamatongwe <unknown> | 2005-05-07 10:50:38 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-05-07 10:50:38 +0000 |
commit | a5947254aab31b2e51f37144206133a8b0e4ac6e (patch) | |
tree | 4bf911b047a0c992d2dfb9e74b63c66ebe0e1e4f /src/CellBuffer.cxx | |
parent | 4d4ebd95f2f25e4c814dcd441a98d388e659455a (diff) | |
download | scintilla-mirror-a5947254aab31b2e51f37144206133a8b0e4ac6e.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.cxx | 4 |
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() { |