Merge branch 'master' into gdbmi

This commit is contained in:
royqh1979@gmail.com 2021-11-20 08:16:13 +08:00
commit c6080cdf59
2 changed files with 4 additions and 4 deletions

View File

@ -2,6 +2,7 @@ Version 0.9.2 For Dev-C++ 7 Beta
- fix: gutter of the disassembly code control in the cpu info dialog is grayed
- fix: problem set & problem views not correctly hidden when disabled in the executor / problem set options
- fix: executor / problem set options not correctly saved
- fix: option "Move caret to the first non-space char in the current line when press HOME key" dosen't work fine.
Version 0.9.1 For Dev-C++ 7 Beta
- enhancement: code completion suggestion for "__func__" variable

View File

@ -4652,7 +4652,7 @@ void SynEdit::moveCaretToLineStart(bool isSelection)
{
int newX;
// home key enhancement
if (mOptions.testFlag(SynEditorOption::eoEnhanceHomeKey) && (lineToRow(mCaretY) == displayY())) {
if (mOptions.testFlag(SynEditorOption::eoEnhanceHomeKey)) {
QString s = mLines->getString(mCaretY - 1);
int first_nonblank = 0;
@ -4660,11 +4660,10 @@ void SynEdit::moveCaretToLineStart(bool isSelection)
while ((first_nonblank < vMaxX) && (s[first_nonblank] == ' ' || s[first_nonblank] == '\t')) {
first_nonblank++;
}
newX = mCaretX;
if (newX > first_nonblank)
newX = first_nonblank;
if (newX > first_nonblank+1)
newX = first_nonblank+1;
else
newX = 1;
} else