Skip to content

Commit

Permalink
Tab key Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Dec 14, 2014
1 parent 71be81b commit bcba18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeEditor/codeeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void CodeEditor::keyPressEvent(QKeyEvent* e)
QString text("");
QStringList lines = this->textCursor().selection().toPlainText().split(QRegExp("\n|\r\n|\r"));
foreach (QString line, lines) {
line.replace(QRegExp("( | | | )(.*)"), "\\2");
line.replace(QRegExp("^( | | | )(.*)"), "\\2");
text.append(line);
text.append("\n");
}
Expand Down

0 comments on commit bcba18e

Please sign in to comment.