- fix: greatly reduces paste time

This commit is contained in:
royqh1979@gmail.com 2021-11-13 13:09:50 +08:00
parent be2c1ec77f
commit a9aa098c29
1 changed files with 1 additions and 1 deletions

View File

@ -1434,7 +1434,7 @@ int SynEdit::calcIndentSpaces(int line, const QString& lineText, bool addIndent)
QString s;
while (startLine>=1) {
s = mLines->getString(startLine-1);
if (!s.trimmed().isEmpty()) {
if (!s.startsWith('#') && !s.trimmed().isEmpty()) {
break;
}
startLine -- ;