Skip to content

Commit

Permalink
fix wrong indentation on new line
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Feb 25, 2024
1 parent fdce049 commit bce155b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vstgui/lib/ctexteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ void TextEditorView::insertNewLine () const
auto isWhiteSpace = [] (char16_t character) {
return character == u'\t' || character == u' ';
};
for (auto index = currentLine->range.start; index < currentLine->range.end (); ++index)
for (auto index = currentLine->range.start; index < cursor; ++index)
{
if (isWhiteSpace (md.model.text[index]))
{
Expand Down

0 comments on commit bce155b

Please sign in to comment.