From 270b7ad326c83b9c2df9bd31284d566eee70cf7d Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Thu, 21 May 2015 10:21:13 +1000 Subject: Fix bug with TentativeUndo where the undo history was being damaged on OS X. For example the sequence ['a', 'c', left, 'b', undo] would produce "c" instead of "ac". --- src/Document.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index 7d34dace1..3f365fdf4 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -216,6 +216,8 @@ void Document::SetSavePoint() { } void Document::TentativeUndo() { + if (!TentativeActive()) + return; CheckReadOnly(); if (enteredModification == 0) { enteredModification++; -- cgit v1.2.3