On 11/05/2015 03:29 PM, Georg Baum wrote:
Vincent van Ravesteijn wrote:

Toggling track_changes does not even mark the document as changed, so
you cannot save it. So, when I'm ready writing and I want my
collaborator to use track changes, I'll have turn on track changes, make a 
change, undo the change, and save.
This is of course a bug. Toggling any setting that is stored in the document 
must make it saveable.

Trivial fix:

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 9a9a77b..86947a8 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -1460,6 +1460,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)

        case LFUN_CHANGES_TRACK:
buffer_.params().track_changes = !buffer_.params().track_changes;
+               buffer().markDirty();
                break;

        case LFUN_CHANGES_OUTPUT:

OK for Alpha, Scott?

Richard

Reply via email to