mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Don't bother bliking the cursor if it isn't on the screen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33813 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
57aa866a1c
commit
8a690ea050
@ -396,6 +396,13 @@ void GuiWorkArea::stopBlinkingCursor()
|
||||
|
||||
void GuiWorkArea::startBlinkingCursor()
|
||||
{
|
||||
Point p;
|
||||
int h = 0;
|
||||
buffer_view_->cursorPosAndHeight(p, h);
|
||||
// Don't start blinking if the cursor isn't on screen.
|
||||
if (!buffer_view_->cursorInView(p, h))
|
||||
return;
|
||||
|
||||
showCursor();
|
||||
|
||||
//we're not supposed to cache this value.
|
||||
|
Loading…
Reference in New Issue
Block a user