#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"
if (irow != view()->text->firstRow()) {
#if 1
view()->text->setCursorFromCoordinates(
- view()->text->cursor.ix() + inset_x,
- view()->text->cursor.iy() -
+ view()->text->cursor.x() + inset_x,
+ view()->text->cursor.y() -
irow->baseline() - 1);
view()->text->cursor.x_fix(view()->text->cursor.x());
#else
if (irow != view()->text->lastRow()) {
#if 1
view()->text->setCursorFromCoordinates(
- view()->text->cursor.ix() + inset_x,
- view()->text->cursor.iy() -
+ view()->text->cursor.x() + inset_x,
+ view()->text->cursor.y() -
irow->baseline() +
irow->height() + 1);
view()->text->cursor.x_fix(view()->text->cursor.x());
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()