]> git.lyx.org Git - features.git/blobdiff - src/BufferView.cpp
Fix bug #2213 (part 1): GuiChanges lacks "Previous Change" button.
[features.git] / src / BufferView.cpp
index c75b115fadc9891fb17f33d9d021fdec965c737c..7e658a726b2fc80f1242366fecf1c505b687e5c8 100644 (file)
@@ -983,6 +983,7 @@ FuncStatus BufferView::getStatus(FuncRequest const & cmd)
 
        case LFUN_CHANGES_MERGE:
        case LFUN_CHANGE_NEXT:
+       case LFUN_CHANGE_PREVIOUS:
        case LFUN_ALL_CHANGES_ACCEPT:
        case LFUN_ALL_CHANGES_REJECT:
                // TODO: context-sensitive enabling of LFUNs
@@ -1227,6 +1228,12 @@ bool BufferView::dispatch(FuncRequest const & cmd)
                // FIXME: Move this LFUN to Buffer so that we don't have to do this:
                processUpdateFlags(Update::Force | Update::FitCursor);
                break;
+       
+       case LFUN_CHANGE_PREVIOUS:
+               findPreviousChange(this);
+               // FIXME: Move this LFUN to Buffer so that we don't have to do this:
+               processUpdateFlags(Update::Force | Update::FitCursor);
+               break;
 
        case LFUN_CHANGES_MERGE:
                if (findNextChange(this)) {