- fix: If there are only 1 line in the editor, shift+down can't select it.

This commit is contained in:
Roy Qu 2024-03-30 10:34:47 +08:00
parent 3681b1f56f
commit c4442f3a30
2 changed files with 2 additions and 1 deletions

View File

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

View File

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