]> 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>
Mon, 29 Apr 2013 15:24:28 +0000 (17:24 +0200)
commit21c5bbec71b7a8a191e10be68396ccef49909c7b
tree343841d9f59ab4cd415cd9e4d4c913dba59df6bc
parent712e1871cacc208b09bf8d68748b519aa4a26cf1
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