- fix: greatly reduces paste time
This commit is contained in:
parent
be2c1ec77f
commit
a9aa098c29
|
@ -1434,7 +1434,7 @@ int SynEdit::calcIndentSpaces(int line, const QString& lineText, bool addIndent)
|
||||||
QString s;
|
QString s;
|
||||||
while (startLine>=1) {
|
while (startLine>=1) {
|
||||||
s = mLines->getString(startLine-1);
|
s = mLines->getString(startLine-1);
|
||||||
if (!s.trimmed().isEmpty()) {
|
if (!s.startsWith('#') && !s.trimmed().isEmpty()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
startLine -- ;
|
startLine -- ;
|
||||||
|
|
Loading…
Reference in New Issue