From d171d7bdf5bff6159f8949c8abce87ae8cb32854 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 29 Feb 2024 19:33:53 +0800 Subject: [PATCH] - fix: Selected lines doesn't draw line break glyphs. --- NEWS.md | 1 + libs/qsynedit/qsynedit/painter.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 8d9e2857..246c6db3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -21,6 +21,7 @@ Red Panda C++ Version 2.27 - fix: Can't show function tips for std::ios::sync_with_stdio. - fix: Wrong indent for the line after the pasted context. - Enhancement: When '{' is inputted and there are contents selected, auto add line breaks and indents. + - fix: Selected lines doesn't draw line break glyphs. Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/libs/qsynedit/qsynedit/painter.cpp b/libs/qsynedit/qsynedit/painter.cpp index 9dbaa9d7..6deb0492 100644 --- a/libs/qsynedit/qsynedit/painter.cpp +++ b/libs/qsynedit/qsynedit/painter.cpp @@ -1137,8 +1137,6 @@ void QSynEditPainter::paintLines() } else { // Draw LineBreak glyph. if (mEdit->mOptions.testFlag(eoShowLineBreaks) - && (!mIsLineSelected) - && (!mIsSpecialLine) && (mEdit->mDocument->lineWidth(vLine-1) < mRight)) { addOnStr = LineBreakGlyph; attr = mEdit->mSyntaxer->whitespaceAttribute();