]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/WorkArea.cpp
updated list of LyX translations
[lyx.git] / src / frontends / WorkArea.cpp
index 0190e2d23a2ccefd6f061815e7579c42a1d3e883..4e8187567c9ce6392994487f98d4ca9c1141ea82 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "FuncRequest.h"
 #include "LyXFunc.h"
-#include "Painter.h"
 
 #include "BufferView.h"
 #include "Buffer.h"
 #include "Color.h"
 #include "Font.h"
 #include "LyXRC.h"
-#include "Row.h"
 #include "Text.h"
 #include "LyXView.h"
 #include "MetricsInfo.h"
-#include "Paragraph.h"
-#include "rowpainter.h"
 
 #include "gettext.h"
 #include "support/ForkedcallsController.h"
@@ -148,6 +144,13 @@ void WorkArea::redraw()
 
        updateScrollbar();
 
+       // update cursor position, because otherwise it has to wait until
+       // the blinking interval is over
+       if (cursor_visible_) {
+               hideCursor();
+               showCursor();
+       }
+       
        ViewMetricsInfo const & vi = buffer_view_->viewMetricsInfo();
        greyed_out_ = false;