- fix: issue #215 (Caret may be drawn in the gutter.)
This commit is contained in:
parent
d171d7bdf5
commit
6d137b82bd
|
@ -3715,6 +3715,8 @@ void QSynEdit::paintCaret(QPainter &painter, const QRect rcClip)
|
||||||
if (m_blinkStatus!=1)
|
if (m_blinkStatus!=1)
|
||||||
return;
|
return;
|
||||||
painter.setClipRect(rcClip);
|
painter.setClipRect(rcClip);
|
||||||
|
if (rcClip.left() < mGutterWidth)
|
||||||
|
return;
|
||||||
EditCaretType ct;
|
EditCaretType ct;
|
||||||
if (this->mInserting) {
|
if (this->mInserting) {
|
||||||
ct = mInsertCaret;
|
ct = mInsertCaret;
|
||||||
|
|
Loading…
Reference in New Issue