Never not show caret when window does not have focus

A non blinking cursor could appear when hovering on inset button.

Fixes bug #12762.
This commit is contained in:
Jean-Marc Lasgouttes 2023-05-03 12:22:52 +02:00
parent e533118b38
commit 21dcb4782f

View File

@ -474,8 +474,9 @@ void GuiWorkArea::Private::resizeBufferView()
void GuiWorkArea::Private::resetCaret()
{
// Don't start blinking if the cursor isn't on screen.
if (!buffer_view_->caretInView())
// Don't start blinking if the cursor isn't on screen or the window
// does not have focus
if (!buffer_view_->caretInView() || !p->hasFocus())
return;
// completion indicator