forked from qt-creator/qt-creator
make the home key jump to column 0 if the caret if before the first non-space
This commit is contained in:
@@ -2767,6 +2767,8 @@ void BaseTextEditor::handleHomeKey(bool anchor)
|
|||||||
|
|
||||||
while (character == tab || character.category() == QChar::Separator_Space) {
|
while (character == tab || character.category() == QChar::Separator_Space) {
|
||||||
++pos;
|
++pos;
|
||||||
|
if (pos == initpos)
|
||||||
|
break;
|
||||||
character = characterAt(pos);
|
character = characterAt(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user