Skip to content

Commit

Permalink
Reuse indentLine()
Browse files Browse the repository at this point in the history
  • Loading branch information
agateau committed Jan 8, 2019
1 parent 1789588 commit 33bb844
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IndentExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ bool IndentExtension::canRemoveIndentation() const

void IndentExtension::insertIndentation()
{
mTextEdit->insertPlainText(QString(INDENT_SIZE, ' '));
auto cursor = mTextEdit->textCursor();
indentLine(cursor);
}

void IndentExtension::processSelection(ProcessSelectionCallback callback)
Expand Down

0 comments on commit 33bb844

Please sign in to comment.