]> git.lyx.org Git - features.git/commit
Fix bug #8627: Command line switches to change branch do not appear to work
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 16 Apr 2013 14:22:10 +0000 (16:22 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 8 May 2013 10:56:21 +0000 (12:56 +0200)
commit4d267e4f79c64e48614ce6409672eeb378a80bc8
tree47127bfd3a303dadb3dfb815b7fbcb23a54b71e4
parent0d4bc37fe6e5b56694e50e5a568244ca018cd19f
Fix bug #8627: Command line switches to change branch do not appear to work

Move the handling of branch-(de)activate(master) to Buffer. This code was moved to Bufferview in [3a03e71c/lyxgit] because a cursor was necessary to call Undo::recordUndoFullDocument(). However, it turns out that the undo code is already prepared to handle an empty cursor (and do nothing in this case).

Therefore we do that and move the branch code to Buffer where it belongs.

Note that there was a bug in the previous code that broke undo support: recordUndo should always be called _before_ doing any change.
src/Buffer.cpp
src/BufferView.cpp
status.20x