- fix: issue #215 (Caret may be drawn in the gutter.)

This commit is contained in:
Roy Qu 2024-02-29 20:23:30 +08:00
parent d171d7bdf5
commit 6d137b82bd
1 changed files with 2 additions and 0 deletions

View File

@ -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;