]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
Move #includes out of header files.
[lyx.git] / src / lyxfunc.C
index 9c85a46ec617dc89dab45f3cb3b66c5af9710880..c7de612436e78f1250562b8b7e2998f0cfdaf9b1 100644 (file)
@@ -26,6 +26,8 @@
 #include "buffer.h"
 #include "buffer_funcs.h"
 #include "BufferView.h"
+#include "funcrequest.h"
+#include "iterators.h"
 #include "lyxserver.h"
 #include "intl.h"
 #include "lyx_main.h"
@@ -1631,7 +1633,11 @@ exit_with_message:
        view()->owner()->updateLayoutChoice();
 
        if (view()->available()) {
-               view()->fitCursor();
+               if (view()->fitCursor()) {
+                       lyxerr << "LyXFunc->fitCursor->update" << endl;
+
+                       view()->update();
+               }
 
                // If we executed a mutating lfun, mark the buffer as dirty
                if (!getStatus(ev).disabled()