diff --git a/NEWS.md b/NEWS.md index dc17f420..5c3f8a7b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -104,6 +104,7 @@ Red Panda C++ Version 2.27 - enhancement: Add compiler set by choose the executable. - fix: Compile info for project doesn't have name of the project executable. - enhancement: Highlight words in the string/comments. + - fix: If there are only 1 line in the editor, shift+down can't select it. Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/libs/qsynedit/qsynedit/qsynedit.cpp b/libs/qsynedit/qsynedit/qsynedit.cpp index c0b83e7c..032167d5 100644 --- a/libs/qsynedit/qsynedit/qsynedit.cpp +++ b/libs/qsynedit/qsynedit/qsynedit.cpp @@ -4787,7 +4787,7 @@ void QSynEdit::moveCaretVert(int deltaY, bool isSelection) BufferCoord vDstLineChar; if (ptDst.row == ptO.row && isSelection && deltaY!=0) { - if (ptDst.row==1) { + if (ptDst.row==1 && mDocument->count()>1) { vDstLineChar.ch=1; vDstLineChar.line=1; } else {