Commit 98907052 authored by mae's avatar mae
Browse files

make the home key jump to column 0 if the caret if before the first non-space

parent ddfd46b3
...@@ -2767,6 +2767,8 @@ void BaseTextEditor::handleHomeKey(bool anchor) ...@@ -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);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment